Package org.apache.lucene.util.bkd
Class HeapPointReader
- java.lang.Object
-
- org.apache.lucene.util.bkd.PointReader
-
- org.apache.lucene.util.bkd.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 Summary
Constructors Constructor Description HeapPointReader(List<byte[]> blocks, int valuesPerBlock, int packedBytesLength, int[] ords, long[] ordsLong, int[] docIDs, int start, int end, boolean singleValuePerDoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intdocID()DocID for this pointbooleannext()Returns false once iteration is done, else true.longord()Point ordinalbyte[]packedValue()Returns the packed byte[] value-
Methods inherited from class org.apache.lucene.util.bkd.PointReader
markOrds, split
-
-
-
-
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:PointReaderReturns false once iteration is done, else true.- Specified by:
nextin classPointReader
-
packedValue
public byte[] packedValue()
Description copied from class:PointReaderReturns the packed byte[] value- Specified by:
packedValuein classPointReader
-
docID
public int docID()
Description copied from class:PointReaderDocID for this point- Specified by:
docIDin classPointReader
-
ord
public long ord()
Description copied from class:PointReaderPoint ordinal- Specified by:
ordin classPointReader
-
close
public void close()
-
-