Package org.apache.lucene.util.bkd
Interface BKDWriter.BKDTreeLeafNodes
-
- Enclosing class:
- BKDWriter
private static interface BKDWriter.BKDTreeLeafNodesflat representation of a kd-tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLeafLP(int index)pointer to the leaf node previously written.intgetSplitDimension(int index)split dimension between two leaves.BytesRefgetSplitValue(int index)split value between two leaves.intnumLeaves()number of leaf nodes
-
-
-
Method Detail
-
numLeaves
int numLeaves()
number of leaf nodes
-
getLeafLP
long getLeafLP(int index)
pointer to the leaf node previously written. Leaves are order from left to right, so leaf atindex0 is the leftmost leaf and the the leaf atnumleaves()-1 is the rightmost leaf
-
getSplitValue
BytesRef getSplitValue(int index)
split value between two leaves. The split value at position n corresponds to the leaves at (n -1) and n.
-
getSplitDimension
int getSplitDimension(int index)
split dimension between two leaves. The split dimension at position n corresponds to the leaves at (n -1) and n.
-
-