Class IntBlockPool.SliceReader

java.lang.Object
org.apache.lucene.util.IntBlockPool.SliceReader
Enclosing class:
IntBlockPool

public static final class IntBlockPool.SliceReader extends Object
A IntBlockPool.SliceReader that can read int slices written by a IntBlockPool.SliceWriter
  • Constructor Details

  • Method Details

    • reset

      public void reset(int startOffset, int endOffset)
      Resets the reader to a slice give the slices absolute start and end offset in the pool
    • endOfSlice

      public boolean endOfSlice()
      Returns true iff the current slice is fully read. If this method returns true readInt() should not be called again on this slice.
    • readInt

      public int readInt()
      Reads the next int from the current slice and returns it.
      See Also: