public final class OfflinePointReader extends PointReader
OfflinePointWriter.| Constructor and Description |
|---|
OfflinePointReader(Directory tempDir,
String tempFileName,
int packedBytesLength,
long start,
long length,
boolean longOrds,
boolean singleValuePerDoc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
docID()
DocID for this point
|
void |
markOrds(long count,
LongBitSet ordBitSet)
Iterates through the next
count ords, marking them in the provided ordBitSet. |
boolean |
next()
Returns false once iteration is done, else true.
|
long |
ord()
Point ordinal
|
byte[] |
packedValue()
Returns the packed byte[] value
|
long |
split(long count,
LongBitSet rightTree,
PointWriter left,
PointWriter right,
boolean doClearBits)
Splits this reader into left and right partitions
|
public OfflinePointReader(Directory tempDir, String tempFileName, int packedBytesLength, long start, long length, boolean longOrds, boolean singleValuePerDoc) throws IOException
IOExceptionpublic boolean next()
throws IOException
PointReadernext in class PointReaderIOExceptionpublic byte[] packedValue()
PointReaderpackedValue in class PointReaderpublic long ord()
PointReaderord in class PointReaderpublic int docID()
PointReaderdocID in class PointReaderpublic void close()
throws IOException
IOExceptionpublic void markOrds(long count,
LongBitSet ordBitSet)
throws IOException
PointReadercount ords, marking them in the provided ordBitSet.markOrds in class PointReaderIOExceptionpublic long split(long count,
LongBitSet rightTree,
PointWriter left,
PointWriter right,
boolean doClearBits)
throws IOException
PointReadersplit in class PointReaderIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.