public final class OfflinePointReader extends java.lang.Object implements PointReader
OfflinePointWriter
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
OfflinePointReader.OfflinePointValue
Reusable implementation for a point value offline
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
bytesPerDoc |
private boolean |
checked |
(package private) long |
countLeft |
(package private) IndexInput |
in |
private int |
maxPointOnHeap |
(package private) java.lang.String |
name |
(package private) int |
offset |
(package private) byte[] |
onHeapBuffer |
private int |
packedValueLength |
private int |
pointsInBuffer |
private OfflinePointReader.OfflinePointValue |
pointValue |
Constructor and Description |
---|
OfflinePointReader(Directory tempDir,
java.lang.String tempFileName,
int packedBytesLength,
long start,
long length,
byte[] reusableBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
next()
Returns false once iteration is done, else true.
|
PointValue |
pointValue()
Sets the packed value in the provided ByteRef
|
long countLeft
final IndexInput in
byte[] onHeapBuffer
int offset
final int bytesPerDoc
private boolean checked
private final int packedValueLength
private int pointsInBuffer
private final int maxPointOnHeap
final java.lang.String name
private final OfflinePointReader.OfflinePointValue pointValue
public OfflinePointReader(Directory tempDir, java.lang.String tempFileName, int packedBytesLength, long start, long length, byte[] reusableBuffer) throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
PointReader
next
in interface PointReader
java.io.IOException
public PointValue pointValue()
PointReader
pointValue
in interface PointReader
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException