Class HeapPointReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, PointReader

    public final class HeapPointReader
    extends java.lang.Object
    implements PointReader
    Utility class to read buffered points from in-heap arrays.
    • Field Detail

      • curRead

        private int curRead
      • block

        final byte[] block
      • packedBytesLength

        final int packedBytesLength
      • packedBytesDocIDLength

        final int packedBytesDocIDLength
      • end

        final int end
    • Constructor Detail

      • HeapPointReader

        public HeapPointReader​(byte[] block,
                               int packedBytesLength,
                               int start,
                               int end)
    • Method Detail

      • next

        public boolean next()
        Description copied from interface: PointReader
        Returns false once iteration is done, else true.
        Specified by:
        next in interface PointReader
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable