AbstractSearchProcessorFactory#newKmpSearchProcessorFactory
to create an instance of this factory.
Use KmpSearchProcessorFactory#newSearchProcessor to get an instance of io.netty.util.ByteProcessor
implementation for performing the actual search.
AbstractSearchProcessorFactory
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public KmpSearchProcessorFactory. | newSearchProcessor()
Implements io. Processor.
|
| jumpTable | back to summary |
|---|---|
| private final int[] jumpTable | |
| needle | back to summary |
|---|---|
| private final byte[] needle | |
| KmpSearchProcessorFactory | back to summary |
|---|---|
| pack-priv KmpSearchProcessorFactory(byte[] needle) | |
| newSearchProcessor | back to summary |
|---|---|
| public KmpSearchProcessorFactory. Implements io. Returns a new
| |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final int[] | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | reset()
Implements io. |
| currentPosition | back to summary |
|---|---|
| private long currentPosition | |
| jumpTable | back to summary |
|---|---|
| private final int[] jumpTable | |
| needle | back to summary |
|---|---|
| private final byte[] needle | |
| Processor | back to summary |
|---|---|
| pack-priv Processor(byte[] needle, int[] jumpTable) | |
| 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.
| |