Class AhoCorasicSearchProcessorFactory.Processor
java.lang.Object
io.netty.buffer.search.AhoCorasicSearchProcessorFactory.Processor
- All Implemented Interfaces:
MultiSearchProcessor, SearchProcessor, ByteProcessor
- Enclosing class:
AhoCorasicSearchProcessorFactory
public static class AhoCorasicSearchProcessorFactory.Processor
extends Object
implements MultiSearchProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor -
Field Summary
Fields inherited from interface ByteProcessor
FIND_ASCII_SPACE, FIND_COMMA, FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL, FIND_SEMI_COLON -
Method Summary
-
Method Details
-
process
public boolean process(byte value) - Specified by:
processin interfaceByteProcessor- Returns:
trueif the processor wants to continue the loop and handle the next byte in the buffer.falseif the processor wants to stop handling bytes and abort the loop.
-
getFoundNeedleId
public int getFoundNeedleId()- Specified by:
getFoundNeedleIdin interfaceMultiSearchProcessor- Returns:
- the index of found search string (if any, or -1 if none) at current position of this MultiSearchProcessor
-
reset
public void reset()Description copied from interface:SearchProcessorResets the state of SearchProcessor.- Specified by:
resetin interfaceSearchProcessor
-