public 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
public OfflinePointReader(Directory tempDir, java.lang.String tempFileName, int packedBytesLength, long start, long length, boolean longOrds, boolean singleValuePerDoc) throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
PointReader
next
in class PointReader
java.io.IOException
public byte[] packedValue()
PointReader
packedValue
in class PointReader
public long ord()
PointReader
ord
in class PointReader
public int docID()
PointReader
docID
in class PointReader
public void close() throws java.io.IOException
java.io.IOException
public void markOrds(long count, LongBitSet ordBitSet) throws java.io.IOException
PointReader
count
ords, marking them in the provided ordBitSet
.markOrds
in class PointReader
java.io.IOException
public long split(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits) throws java.io.IOException
PointReader
split
in class PointReader
java.io.IOException
private static long readLong(byte[] bytes, int pos)
private static int readInt(byte[] bytes, int pos)