Class MutablePointValues

java.lang.Object
org.apache.lucene.index.PointValues
org.apache.lucene.codecs.MutablePointValues
Direct Known Subclasses:
PointValuesWriter.MutableSortingPointValues

public abstract class MutablePointValues extends PointValues
PointValues whose order of points can be changed. This class is useful for codecs to optimize flush.
  • Constructor Details

    • MutablePointValues

      protected MutablePointValues()
      Sole constructor.
  • Method Details

    • getValue

      public abstract void getValue(int i, BytesRef packedValue)
      Set packedValue with a reference to the packed bytes of the i-th value.
    • getByteAt

      public abstract byte getByteAt(int i, int k)
      Get the k-th byte of the i-th value.
    • getDocID

      public abstract int getDocID(int i)
      Return the doc ID of the i-th value.
    • swap

      public abstract void swap(int i, int j)
      Swap the i-th and j-th values.