Class OfflinePointReader.OfflinePointValue

  • All Implemented Interfaces:
    PointValue
    Enclosing class:
    OfflinePointReader

    static class OfflinePointReader.OfflinePointValue
    extends java.lang.Object
    implements PointValue
    Reusable implementation for a point value offline
    • Field Detail

      • packedValue

        final BytesRef packedValue
      • packedValueDocID

        final BytesRef packedValueDocID
      • packedValueLength

        final int packedValueLength
    • Constructor Detail

      • OfflinePointValue

        OfflinePointValue​(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