Class PointReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Direct Known Subclasses:
    HeapPointReader, OfflinePointReader

    public abstract class PointReader
    extends Object
    implements Closeable
    One pass iterator through all points previously written with a PointWriter, abstracting away whether points a read from (offline) disk or simple arrays in heap.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • PointReader

        public PointReader()
    • Method Detail

      • next

        public abstract boolean next()
                              throws IOException
        Returns false once iteration is done, else true.
      • packedValue

        public abstract byte[] packedValue()
        Returns the packed byte[] value
      • ord

        public abstract long ord()
        Point ordinal
      • docID

        public abstract int docID()
        DocID for this point
      • markOrds

        public void markOrds​(long count,
                             LongBitSet ordBitSet)
                      throws IOException
        Iterates through the next count ords, marking them in the provided ordBitSet.