- java.lang.Object
-
- org.apache.lucene.util.bkd.HeapPointReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,PointReader
public final class HeapPointReader extends java.lang.Object implements PointReader
Utility class to read buffered points from in-heap arrays.
-
-
Field Summary
Fields Modifier and Type Field Description private int
curRead
private int
end
private java.util.function.IntFunction<PointValue>
points
-
Constructor Summary
Constructors Constructor Description HeapPointReader(java.util.function.IntFunction<PointValue> points, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
next()
Returns false once iteration is done, else true.PointValue
pointValue()
Sets the packed value in the provided ByteRef
-
-
-
Field Detail
-
curRead
private int curRead
-
end
private final int end
-
points
private final java.util.function.IntFunction<PointValue> points
-
-
Constructor Detail
-
HeapPointReader
HeapPointReader(java.util.function.IntFunction<PointValue> points, int start, int end)
-
-
Method Detail
-
next
public boolean next()
Description copied from interface:PointReader
Returns false once iteration is done, else true.- Specified by:
next
in interfacePointReader
-
pointValue
public PointValue 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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-