Class 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 Detail

      • packedValue

        final BytesRef packedValue
      • packedValueDocID

        final BytesRef packedValueDocID
      • packedValueLength

        final int packedValueLength
    • Constructor Detail

      • HeapPointValue

        HeapPointValue​(byte[] value,
                       int packedValueLength)
    • Method Detail

      • setOffset

        public void setOffset​(int offset)
        Sets a new value by changing the offset.
      • 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