final class OfflinePointReader extends PointReader
OfflinePointWriter.| Modifier and Type | Field and Description |
|---|---|
(package private) int |
bytesPerDoc |
private boolean |
checked |
(package private) long |
countLeft |
private int |
docID |
(package private) IndexInput |
in |
private boolean |
longOrds |
(package private) java.lang.String |
name |
private long |
ord |
private byte[] |
packedValue |
(package private) boolean |
singleValuePerDoc |
| Constructor and Description |
|---|
OfflinePointReader(Directory tempDir,
java.lang.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
|
private static int |
readInt(byte[] bytes,
int pos) |
private static long |
readLong(byte[] bytes,
int pos) |
long |
split(long count,
LongBitSet rightTree,
PointWriter left,
PointWriter right,
boolean doClearBits)
Splits this reader into left and right partitions
|
long countLeft
final IndexInput in
private final byte[] packedValue
final boolean singleValuePerDoc
final int bytesPerDoc
private long ord
private int docID
private boolean longOrds
private boolean checked
final java.lang.String name
OfflinePointReader(Directory tempDir, java.lang.String tempFileName, int packedBytesLength, long start, long length, boolean longOrds, boolean singleValuePerDoc) throws java.io.IOException
java.io.IOExceptionpublic boolean next()
throws java.io.IOException
PointReadernext in class PointReaderjava.io.IOExceptionpublic byte[] packedValue()
PointReaderpackedValue in class PointReaderpublic long ord()
PointReaderord in class PointReaderpublic int docID()
PointReaderdocID in class PointReaderpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void markOrds(long count,
LongBitSet ordBitSet)
throws java.io.IOException
PointReadercount ords, marking them in the provided ordBitSet.markOrds in class PointReaderjava.io.IOExceptionpublic long split(long count,
LongBitSet rightTree,
PointWriter left,
PointWriter right,
boolean doClearBits)
throws java.io.IOException
PointReadersplit in class PointReaderjava.io.IOExceptionprivate static long readLong(byte[] bytes,
int pos)
private static int readInt(byte[] bytes,
int pos)