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 Object implements PointValue
Reusable implementation for a point value on-heap
  • Field Details

    • packedValue

      final BytesRef packedValue
    • packedValueDocID

      final BytesRef packedValueDocID
    • packedValueLength

      final int packedValueLength
  • Constructor Details

    • HeapPointValue

      HeapPointValue(BKDConfig config, byte[] value)
  • Method Details

    • setOffset

      public 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 interface PointValue
    • docID

      public int docID()
      Description copied from interface: PointValue
      Returns the docID
      Specified by:
      docID in interface PointValue
    • 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 interface PointValue