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.DocMapdocMapprivate MutablePointTreein
-
Constructor Summary
Constructors Constructor Description MutableSortingPointValues(MutablePointTree in, Sorter.DocMap docMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetByteAt(int i, int k)Get the k-th byte of the i-th value.intgetDocID(int i)Return the doc ID of the i-th value.voidgetValue(int i, BytesRef packedValue)SetpackedValuewith a reference to the packed bytes of the i-th value.voidrestore(int i, int j)Restore values between i-th and j-th(excluding) in temporary storage into original storage.voidsave(int i, int j)Save the i-th value into the j-th position in temporary storage.longsize()Return the number of points below the current node.voidswap(int i, int j)Swap the i-th and j-th values.voidvisitDocValues(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.PointTreeReturn the number of points below the current node.
-
visitDocValues
public void visitDocValues(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTreeVisit 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:MutablePointTreeSetpackedValuewith a reference to the packed bytes of the i-th value.- Specified by:
getValuein classMutablePointTree
-
getByteAt
public byte getByteAt(int i, int k)Description copied from class:MutablePointTreeGet the k-th byte of the i-th value.- Specified by:
getByteAtin classMutablePointTree
-
getDocID
public int getDocID(int i)
Description copied from class:MutablePointTreeReturn the doc ID of the i-th value.- Specified by:
getDocIDin classMutablePointTree
-
swap
public void swap(int i, int j)Description copied from class:MutablePointTreeSwap the i-th and j-th values.- Specified by:
swapin classMutablePointTree
-
save
public void save(int i, int j)Description copied from class:MutablePointTreeSave the i-th value into the j-th position in temporary storage.- Specified by:
savein classMutablePointTree
-
restore
public void restore(int i, int j)Description copied from class:MutablePointTreeRestore values between i-th and j-th(excluding) in temporary storage into original storage.- Specified by:
restorein classMutablePointTree
-
-