Class HeapPointReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class HeapPointReader
    extends PointReader
    Utility class to read buffered points from in-heap arrays.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • HeapPointReader

        public HeapPointReader​(List<byte[]> blocks,
                               int valuesPerBlock,
                               int packedBytesLength,
                               int[] ords,
                               long[] ordsLong,
                               int[] docIDs,
                               int start,
                               int end,
                               boolean singleValuePerDoc)
    • Method Detail

      • next

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

        public byte[] packedValue()
        Description copied from class: PointReader
        Returns the packed byte[] value
        Specified by:
        packedValue in class PointReader
      • docID

        public int docID()
        Description copied from class: PointReader
        DocID for this point
        Specified by:
        docID in class PointReader
      • close

        public void close()