public class QGramShiftOr extends Object implements StringSearchAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static interface |
QGramShiftOr.BitMapStates |
static class |
QGramShiftOr.Factory |
| Constructor and Description |
|---|
QGramShiftOr(Collection<String> patterns) |
QGramShiftOr(Collection<String> patterns,
net.amygdalum.util.text.CharMapping mapping) |
QGramShiftOr(Collection<String> patterns,
net.amygdalum.util.text.QGramMapping qmapping,
net.amygdalum.util.text.CharMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
static net.amygdalum.util.text.QGramMapping |
bestMapping(Collection<String> patterns) |
StringFinder |
createFinder(CharProvider chars,
StringFinderOption... options)
creates a StringFinder instance from the pattern (given by the current instance) and the given document.
|
int |
getPatternLength() |
String |
toString() |
public QGramShiftOr(Collection<String> patterns)
public QGramShiftOr(Collection<String> patterns, net.amygdalum.util.text.CharMapping mapping)
public QGramShiftOr(Collection<String> patterns, net.amygdalum.util.text.QGramMapping qmapping, net.amygdalum.util.text.CharMapping mapping)
public static net.amygdalum.util.text.QGramMapping bestMapping(Collection<String> patterns)
public int getPatternLength()
getPatternLength in interface StringSearchAlgorithmpublic StringFinder createFinder(CharProvider chars, StringFinderOption... options)
StringSearchAlgorithmcreateFinder in interface StringSearchAlgorithmchars - the given document wrapped into a CharProvideroptions - the configuration options for the string finderCopyright © 2017. All rights reserved.