java.lang.Object
org.apache.lucene.util.bkd.OfflinePointReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PointReader
Reads points from disk in a fixed-with format, previously written with
OfflinePointWriter
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Reusable implementation for a point value offline -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final BKDConfig
(package private) long
(package private) final IndexInput
private final int
(package private) final String
(package private) int
(package private) byte[]
private int
private final OfflinePointReader.OfflinePointValue
-
Constructor Summary
ConstructorsConstructorDescriptionOfflinePointReader
(BKDConfig config, Directory tempDir, String tempFileName, long start, long length, byte[] reusableBuffer) -
Method Summary
-
Field Details
-
countLeft
long countLeft -
in
-
onHeapBuffer
byte[] onHeapBuffer -
offset
int offset -
checked
private boolean checked -
config
-
pointsInBuffer
private int pointsInBuffer -
maxPointOnHeap
private final int maxPointOnHeap -
name
-
pointValue
-
-
Constructor Details
-
OfflinePointReader
public OfflinePointReader(BKDConfig config, Directory tempDir, String tempFileName, long start, long length, byte[] reusableBuffer) throws IOException - Throws:
IOException
-
-
Method Details
-
next
Description copied from interface:PointReader
Returns false once iteration is done, else true.- Specified by:
next
in interfacePointReader
- Throws:
IOException
-
pointValue
Description copied from interface:PointReader
Sets the packed value in the provided ByteRef- Specified by:
pointValue
in interfacePointReader
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-