Class BitapSearchProcessorFactory.Processor

java.lang.Object
io.netty.buffer.search.BitapSearchProcessorFactory.Processor
All Implemented Interfaces:
SearchProcessor, ByteProcessor
Enclosing class:
BitapSearchProcessorFactory

public static class BitapSearchProcessorFactory.Processor extends Object implements SearchProcessor
  • 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 interface ByteProcessor
      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 interface SearchProcessor