Package org.apache.lucene.index
Class PointValuesWriter.MutableSortingPointValues
java.lang.Object
org.apache.lucene.index.PointValues
org.apache.lucene.codecs.MutablePointValues
org.apache.lucene.index.PointValuesWriter.MutableSortingPointValues
- Enclosing class:
PointValuesWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.Relation -
Field Summary
FieldsFields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongEstimate the number of points that would be visited byPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)with the givenPointValues.IntersectVisitor.bytegetByteAt(int i, int k) Get the k-th byte of the i-th value.intReturns the number of bytes per dimensionintReturns the total number of documents that have indexed at least one point.intgetDocID(int i) Return the doc ID of the i-th value.byte[]Returns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0byte[]Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0intReturns how many dimensions are represented in the valuesintReturns how many dimensions are used for the indexvoidSetpackedValuewith a reference to the packed bytes of the i-th value.voidintersect(PointValues.IntersectVisitor visitor) Finds all documents and points matching the provided visitor.longsize()Returns the total number of indexed points across all documents.voidswap(int i, int j) Swap the i-th and j-th values.Methods inherited from class org.apache.lucene.index.PointValues
estimateDocCount, getDocCount, getMaxPackedValue, getMinPackedValue, size
-
Field Details
-
in
-
docMap
-
-
Constructor Details
-
MutableSortingPointValues
-
-
Method Details
-
intersect
Description copied from class:PointValuesFinds all documents and points matching the provided visitor. This method does not enforce live documents, so it's up to the caller to test whether each document is deleted, if necessary.- Specified by:
intersectin classPointValues- Throws:
IOException
-
estimatePointCount
Description copied from class:PointValuesEstimate the number of points that would be visited byPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)with the givenPointValues.IntersectVisitor. This should run many times faster thanPointValues.intersect(IntersectVisitor).- Specified by:
estimatePointCountin classPointValues
-
getMinPackedValue
Description copied from class:PointValuesReturns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMinPackedValuein classPointValues- Throws:
IOException
-
getMaxPackedValue
Description copied from class:PointValuesReturns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMaxPackedValuein classPointValues- Throws:
IOException
-
getNumDimensions
Description copied from class:PointValuesReturns how many dimensions are represented in the values- Specified by:
getNumDimensionsin classPointValues- Throws:
IOException
-
getNumIndexDimensions
Description copied from class:PointValuesReturns how many dimensions are used for the index- Specified by:
getNumIndexDimensionsin classPointValues- Throws:
IOException
-
getBytesPerDimension
Description copied from class:PointValuesReturns the number of bytes per dimension- Specified by:
getBytesPerDimensionin classPointValues- Throws:
IOException
-
size
public long size()Description copied from class:PointValuesReturns the total number of indexed points across all documents.- Specified by:
sizein classPointValues
-
getDocCount
public int getDocCount()Description copied from class:PointValuesReturns the total number of documents that have indexed at least one point.- Specified by:
getDocCountin classPointValues
-
getValue
Description copied from class:MutablePointValuesSetpackedValuewith a reference to the packed bytes of the i-th value.- Specified by:
getValuein classMutablePointValues
-
getByteAt
public byte getByteAt(int i, int k) Description copied from class:MutablePointValuesGet the k-th byte of the i-th value.- Specified by:
getByteAtin classMutablePointValues
-
getDocID
public int getDocID(int i) Description copied from class:MutablePointValuesReturn the doc ID of the i-th value.- Specified by:
getDocIDin classMutablePointValues
-
swap
public void swap(int i, int j) Description copied from class:MutablePointValuesSwap the i-th and j-th values.- Specified by:
swapin classMutablePointValues
-