Package org.apache.lucene.util.bkd
Class OfflinePointReader
- java.lang.Object
-
- org.apache.lucene.util.bkd.PointReader
-
- org.apache.lucene.util.bkd.OfflinePointReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class OfflinePointReader extends PointReader
Reads points from disk in a fixed-with format, previously written withOfflinePointWriter.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description OfflinePointReader(Directory tempDir, String tempFileName, int packedBytesLength, long start, long length, boolean longOrds, boolean singleValuePerDoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intdocID()DocID for this pointvoidmarkOrds(long count, LongBitSet ordBitSet)Iterates through the nextcountords, marking them in the providedordBitSet.booleannext()Returns false once iteration is done, else true.longord()Point ordinalbyte[]packedValue()Returns the packed byte[] valuelongsplit(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits)Splits this reader into left and right partitions
-
-
-
Constructor Detail
-
OfflinePointReader
public OfflinePointReader(Directory tempDir, String tempFileName, int packedBytesLength, long start, long length, boolean longOrds, boolean singleValuePerDoc) throws IOException
- Throws:
IOException
-
-
Method Detail
-
next
public boolean next() throws IOExceptionDescription copied from class:PointReaderReturns false once iteration is done, else true.- Specified by:
nextin classPointReader- Throws:
IOException
-
packedValue
public byte[] packedValue()
Description copied from class:PointReaderReturns the packed byte[] value- Specified by:
packedValuein classPointReader
-
ord
public long ord()
Description copied from class:PointReaderPoint ordinal- Specified by:
ordin classPointReader
-
docID
public int docID()
Description copied from class:PointReaderDocID for this point- Specified by:
docIDin classPointReader
-
close
public void close() throws IOException- Throws:
IOException
-
markOrds
public void markOrds(long count, LongBitSet ordBitSet) throws IOExceptionDescription copied from class:PointReaderIterates through the nextcountords, marking them in the providedordBitSet.- Overrides:
markOrdsin classPointReader- Throws:
IOException
-
split
public long split(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits) throws IOExceptionDescription copied from class:PointReaderSplits this reader into left and right partitions- Overrides:
splitin classPointReader- Throws:
IOException
-
-