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 void
close()
int
docID()
DocID for this pointvoid
markOrds(long count, LongBitSet ordBitSet)
Iterates through the nextcount
ords, marking them in the providedordBitSet
.boolean
next()
Returns false once iteration is done, else true.long
ord()
Point ordinalbyte[]
packedValue()
Returns the packed byte[] valuelong
split(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 IOException
Description copied from class:PointReader
Returns false once iteration is done, else true.- Specified by:
next
in classPointReader
- Throws:
IOException
-
packedValue
public byte[] packedValue()
Description copied from class:PointReader
Returns the packed byte[] value- Specified by:
packedValue
in classPointReader
-
ord
public long ord()
Description copied from class:PointReader
Point ordinal- Specified by:
ord
in classPointReader
-
docID
public int docID()
Description copied from class:PointReader
DocID for this point- Specified by:
docID
in classPointReader
-
close
public void close() throws IOException
- Throws:
IOException
-
markOrds
public void markOrds(long count, LongBitSet ordBitSet) throws IOException
Description copied from class:PointReader
Iterates through the nextcount
ords, marking them in the providedordBitSet
.- Overrides:
markOrds
in classPointReader
- Throws:
IOException
-
split
public long split(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits) throws IOException
Description copied from class:PointReader
Splits this reader into left and right partitions- Overrides:
split
in classPointReader
- Throws:
IOException
-
-