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

      • packedValue

        private final BytesRef packedValue
      • packedValueDocID

        private final BytesRef packedValueDocID
      • packedValueLength

        private final int packedValueLength
    • Constructor Detail

      • HeapPointValue

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

      • setOffset

        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