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
IOException
public boolean next() throws IOException
PointReader
next
in class PointReader
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 IOException
IOException
public void markOrds(long count, LongBitSet ordBitSet) throws IOException
PointReader
count
ords, marking them in the provided ordBitSet
.markOrds
in class PointReader
IOException
public long split(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits) throws IOException
PointReader
split
in class PointReader
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.