Package org.apache.lucene.util.bkd
Class HeapPointReader.HeapPointValue
- java.lang.Object
-
- org.apache.lucene.util.bkd.HeapPointReader.HeapPointValue
-
- All Implemented Interfaces:
PointValue
- Enclosing class:
- HeapPointReader
static class HeapPointReader.HeapPointValue extends java.lang.Object implements PointValue
Reusable implementation for a point value on-heap
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BytesRefpackedValue(package private) BytesRefpackedValueDocID(package private) intpackedValueLength
-
Constructor Summary
Constructors Constructor Description HeapPointValue(BKDConfig config, byte[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdocID()Returns the docIDBytesRefpackedValue()Returns the packed values for the dimensionsBytesRefpackedValueDocIDBytes()Returns the byte representation of the packed value together with the docIDvoidsetOffset(int offset)Sets a new value by changing the offset.
-
-
-
Constructor Detail
-
HeapPointValue
HeapPointValue(BKDConfig config, byte[] value)
-
-
Method Detail
-
setOffset
public void setOffset(int offset)
Sets a new value by changing the offset.
-
packedValue
public BytesRef packedValue()
Description copied from interface:PointValueReturns the packed values for the dimensions- Specified by:
packedValuein interfacePointValue
-
docID
public int docID()
Description copied from interface:PointValueReturns the docID- Specified by:
docIDin interfacePointValue
-
packedValueDocIDBytes
public BytesRef packedValueDocIDBytes()
Description copied from interface:PointValueReturns the byte representation of the packed value together with the docID- Specified by:
packedValueDocIDBytesin interfacePointValue
-
-