Module org.apache.lucene.core
Package org.apache.lucene.index
Class PointValuesWriter.MutableSortingPointValues
- java.lang.Object
-
- org.apache.lucene.codecs.MutablePointTree
-
- org.apache.lucene.index.PointValuesWriter.MutableSortingPointValues
-
- All Implemented Interfaces:
java.lang.Cloneable
,PointValues.PointTree
- Enclosing class:
- PointValuesWriter
static final class PointValuesWriter.MutableSortingPointValues extends MutablePointTree
-
-
Field Summary
Fields Modifier and Type Field Description private Sorter.DocMap
docMap
private MutablePointTree
in
-
Constructor Summary
Constructors Constructor Description MutableSortingPointValues(MutablePointTree in, Sorter.DocMap docMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getByteAt(int i, int k)
Get the k-th byte of the i-th value.int
getDocID(int i)
Return the doc ID of the i-th value.void
getValue(int i, BytesRef packedValue)
SetpackedValue
with a reference to the packed bytes of the i-th value.void
restore(int i, int j)
Restore values between i-th and j-th(excluding) in temporary storage into original storage.void
save(int i, int j)
Save the i-th value into the j-th position in temporary storage.long
size()
Return the number of points below the current node.void
swap(int i, int j)
Swap the i-th and j-th values.void
visitDocValues(PointValues.IntersectVisitor visitor)
Visit all the docs and values below the current node.-
Methods inherited from class org.apache.lucene.codecs.MutablePointTree
clone, getMaxPackedValue, getMinPackedValue, moveToChild, moveToParent, moveToSibling, visitDocIDs
-
-
-
-
Field Detail
-
in
private final MutablePointTree in
-
docMap
private final Sorter.DocMap docMap
-
-
Constructor Detail
-
MutableSortingPointValues
public MutableSortingPointValues(MutablePointTree in, Sorter.DocMap docMap)
-
-
Method Detail
-
size
public long size()
Description copied from interface:PointValues.PointTree
Return the number of points below the current node.
-
visitDocValues
public void visitDocValues(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTree
Visit all the docs and values below the current node.- Throws:
java.io.IOException
-
getValue
public void getValue(int i, BytesRef packedValue)
Description copied from class:MutablePointTree
SetpackedValue
with a reference to the packed bytes of the i-th value.- Specified by:
getValue
in classMutablePointTree
-
getByteAt
public byte getByteAt(int i, int k)
Description copied from class:MutablePointTree
Get the k-th byte of the i-th value.- Specified by:
getByteAt
in classMutablePointTree
-
getDocID
public int getDocID(int i)
Description copied from class:MutablePointTree
Return the doc ID of the i-th value.- Specified by:
getDocID
in classMutablePointTree
-
swap
public void swap(int i, int j)
Description copied from class:MutablePointTree
Swap the i-th and j-th values.- Specified by:
swap
in classMutablePointTree
-
save
public void save(int i, int j)
Description copied from class:MutablePointTree
Save the i-th value into the j-th position in temporary storage.- Specified by:
save
in classMutablePointTree
-
restore
public void restore(int i, int j)
Description copied from class:MutablePointTree
Restore values between i-th and j-th(excluding) in temporary storage into original storage.- Specified by:
restore
in classMutablePointTree
-
-