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