Package org.apache.lucene.codecs
Class MutablePointValues
java.lang.Object
org.apache.lucene.index.PointValues
org.apache.lucene.codecs.MutablePointValues
- Direct Known Subclasses:
PointValuesWriter.MutableSortingPointValues
PointValues whose order of points can be changed.
This class is useful for codecs to optimize flush.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.Relation -
Field Summary
Fields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract bytegetByteAt(int i, int k) Get the k-th byte of the i-th value.abstract intgetDocID(int i) Return the doc ID of the i-th value.abstract voidSetpackedValuewith a reference to the packed bytes of the i-th value.abstract voidswap(int i, int j) Swap the i-th and j-th values.Methods inherited from class org.apache.lucene.index.PointValues
estimateDocCount, estimatePointCount, getBytesPerDimension, getDocCount, getDocCount, getMaxPackedValue, getMaxPackedValue, getMinPackedValue, getMinPackedValue, getNumDimensions, getNumIndexDimensions, intersect, size, size
-
Constructor Details
-
MutablePointValues
protected MutablePointValues()Sole constructor.
-
-
Method Details
-
getValue
SetpackedValuewith 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.
-