static final class PointValuesWriter.MutableSortingPointValues extends MutablePointValues
PointValues.IntersectVisitor, PointValues.Relation
Modifier and Type | Field and Description |
---|---|
private Sorter.DocMap |
docMap |
private MutablePointValues |
in |
MAX_DIMENSIONS, MAX_NUM_BYTES
Constructor and Description |
---|
MutableSortingPointValues(MutablePointValues in,
Sorter.DocMap docMap) |
Modifier and Type | Method and Description |
---|---|
long |
estimatePointCount(PointValues.IntersectVisitor visitor)
Estimate the number of points that would be visited by
PointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor . |
byte |
getByteAt(int i,
int k)
Get the k-th byte of the i-th value.
|
int |
getBytesPerDimension()
Returns the number of bytes per dimension
|
int |
getDocCount()
Returns the total number of documents that have indexed at least one point.
|
int |
getDocID(int i)
Return the doc ID of the i-th value.
|
byte[] |
getMaxPackedValue()
Returns maximum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
byte[] |
getMinPackedValue()
Returns minimum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
int |
getNumDataDimensions()
Returns how many data dimensions are represented in the values
|
int |
getNumIndexDimensions()
Returns how many dimensions are used for the index
|
void |
getValue(int i,
BytesRef packedValue)
Set
packedValue with a reference to the packed bytes of the i-th value. |
void |
intersect(PointValues.IntersectVisitor visitor)
Finds all documents and points matching the provided visitor.
|
long |
size()
Returns the total number of indexed points across all documents.
|
void |
swap(int i,
int j)
Swap the i-th and j-th values.
|
getDocCount, getMaxPackedValue, getMinPackedValue, size
private final MutablePointValues in
private final Sorter.DocMap docMap
public MutableSortingPointValues(MutablePointValues in, Sorter.DocMap docMap)
public void intersect(PointValues.IntersectVisitor visitor) throws java.io.IOException
PointValues
intersect
in class PointValues
java.io.IOException
public long estimatePointCount(PointValues.IntersectVisitor visitor)
PointValues
PointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor
. This should run many times faster
than PointValues.intersect(IntersectVisitor)
.estimatePointCount
in class PointValues
DocIdSetIterator.cost()
public byte[] getMinPackedValue() throws java.io.IOException
PointValues
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is 0
getMinPackedValue
in class PointValues
java.io.IOException
public byte[] getMaxPackedValue() throws java.io.IOException
PointValues
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is 0
getMaxPackedValue
in class PointValues
java.io.IOException
public int getNumDataDimensions() throws java.io.IOException
PointValues
getNumDataDimensions
in class PointValues
java.io.IOException
public int getNumIndexDimensions() throws java.io.IOException
PointValues
getNumIndexDimensions
in class PointValues
java.io.IOException
public int getBytesPerDimension() throws java.io.IOException
PointValues
getBytesPerDimension
in class PointValues
java.io.IOException
public long size()
PointValues
size
in class PointValues
public int getDocCount()
PointValues
getDocCount
in class PointValues
public void getValue(int i, BytesRef packedValue)
MutablePointValues
packedValue
with a reference to the packed bytes of the i-th value.getValue
in class MutablePointValues
public byte getByteAt(int i, int k)
MutablePointValues
getByteAt
in class MutablePointValues
public int getDocID(int i)
MutablePointValues
getDocID
in class MutablePointValues
public void swap(int i, int j)
MutablePointValues
swap
in class MutablePointValues