Package io.netty.buffer.search
Class BitapSearchProcessorFactory.Processor
java.lang.Object
io.netty.buffer.search.BitapSearchProcessorFactory.Processor
- All Implemented Interfaces:
SearchProcessor
,ByteProcessor
- Enclosing class:
BitapSearchProcessorFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long[]
private long
private final long
Fields inherited from interface io.netty.util.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
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bitMasks
private final long[] bitMasks -
successBit
private final long successBit -
currentMask
private long currentMask
-
-
Constructor Details
-
Processor
Processor(long[] bitMasks, long successBit)
-
-
Method Details
-
process
public boolean process(byte value) - Specified by:
process
in interfaceByteProcessor
- Returns:
true
if the processor wants to continue the loop and handle the next byte in the buffer.false
if the processor wants to stop handling bytes and abort the loop.
-
reset
public void reset()Description copied from interface:SearchProcessor
Resets the state of SearchProcessor.- Specified by:
reset
in interfaceSearchProcessor
-