java.lang.Object
org.apache.lucene.util.bkd.HeapPointReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PointReader
Utility class to read buffered points from in-heap arrays.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Reusable implementation for a point value on-heap -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byte[]
(package private) final BKDConfig
private int
(package private) final int
private final HeapPointReader.HeapPointValue
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
curRead
private int curRead -
block
final byte[] block -
config
-
end
final int end -
pointValue
-
-
Constructor Details
-
HeapPointReader
-
-
Method Details
-
next
public boolean next()Description copied from interface:PointReader
Returns false once iteration is done, else true.- Specified by:
next
in interfacePointReader
-
pointValue
Description copied from interface:PointReader
Sets the packed value in the provided ByteRef- Specified by:
pointValue
in interfacePointReader
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-