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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final int
private final IntFunction<PointValue>
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
curRead
private int curRead -
end
private final int end -
points
-
-
Constructor Details
-
HeapPointReader
HeapPointReader(IntFunction<PointValue> points, int start, int end)
-
-
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
-