Package org.apache.lucene.util.bkd
Class HeapPointReader
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classHeapPointReader.HeapPointValueReusable implementation for a point value on-heap
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]block(package private) BKDConfigconfigprivate intcurRead(package private) intendprivate HeapPointReader.HeapPointValuepointValue
-
Constructor Summary
Constructors Constructor Description HeapPointReader(BKDConfig config, byte[] block, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleannext()Returns false once iteration is done, else true.PointValuepointValue()Sets the packed value in the provided ByteRef
-
-
-
Field Detail
-
curRead
private int curRead
-
block
final byte[] block
-
config
final BKDConfig config
-
end
final int end
-
pointValue
private final HeapPointReader.HeapPointValue pointValue
-
-
Constructor Detail
-
HeapPointReader
public HeapPointReader(BKDConfig config, byte[] block, int start, int end)
-
-
Method Detail
-
next
public boolean next()
Description copied from interface:PointReaderReturns false once iteration is done, else true.- Specified by:
nextin interfacePointReader
-
pointValue
public PointValue pointValue()
Description copied from interface:PointReaderSets the packed value in the provided ByteRef- Specified by:
pointValuein interfacePointReader
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-