AbstractMultiSearchProcessorFactory#newAhoCorasicSearchProcessorFactory
to create an instance of this factory.
Use AhoCorasicSearchProcessorFactory#newSearchProcessor to get an instance of
io.netty.util.ByteProcessor implementation for performing the actual search.
AbstractMultiSearchProcessorFactory
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| private final int[] | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static AhoCorasicSearchProcessorFactory. | |
| private void | |
| public AhoCorasicSearchProcessorFactory. | newSearchProcessor()
Implements io. Processor.
|
| ALPHABET_SIZE | back to summary |
|---|---|
| pack-priv static final int ALPHABET_SIZE | |
| BITS_PER_SYMBOL | back to summary |
|---|---|
| pack-priv static final int BITS_PER_SYMBOL | |
| jumpTable | back to summary |
|---|---|
| private final int[] jumpTable | |
| matchForNeedleId | back to summary |
|---|---|
| private final int[] matchForNeedleId | |
| AhoCorasicSearchProcessorFactory | back to summary |
|---|---|
| pack-priv AhoCorasicSearchProcessorFactory(byte[]... needles) | |
| buildTrie | back to summary |
|---|---|
| private static AhoCorasicSearchProcessorFactory. | |
| linkSuffixes | back to summary |
|---|---|
| private void linkSuffixes() | |
| newSearchProcessor | back to summary |
|---|---|
| public AhoCorasicSearchProcessorFactory. Implements io. Returns a new
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv int[] |
| Access | Constructor and Description |
|---|---|
| private |
| jumpTable | back to summary |
|---|---|
| pack-priv int[] jumpTable | |
| matchForNeedleId | back to summary |
|---|---|
| pack-priv int[] matchForNeedleId | |
| Context | back to summary |
|---|---|
| private Context() | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final int[] | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean | |
| public void | reset()
Implements io. |
| currentPosition | back to summary |
|---|---|
| private long currentPosition | |
| jumpTable | back to summary |
|---|---|
| private final int[] jumpTable | |
| matchForNeedleId | back to summary |
|---|---|
| private final int[] matchForNeedleId | |
| Processor | back to summary |
|---|---|
| pack-priv Processor(int[] jumpTable, int[] matchForNeedleId) | |
| getFoundNeedleId | back to summary |
|---|---|
| public int getFoundNeedleId() Implements io.
| |
| process | back to summary |
|---|---|
| public boolean process(byte value) Implements io.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements io. Doc from io. Resets the state of SearchProcessor.
| |