Package org.apache.lucene.util.bkd
Class BKDReader.IndexTree
- java.lang.Object
-
- org.apache.lucene.util.bkd.BKDReader.IndexTree
-
-
Field Summary
Fields Modifier and Type Field Description protected int
level
protected int
nodeID
protected int
splitDim
protected byte[][]
splitPackedValueStack
-
Constructor Summary
Constructors Modifier Constructor Description protected
IndexTree()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BKDReader.IndexTree
clone()
Clone, but you are not allowed to pop up past the point where the clone happened.abstract long
getLeafBlockFP()
Only valid after pushLeft or pushRight, not pop!int
getNodeID()
int
getNumLeaves()
Return the number of leaves below the current node.int
getSplitDim()
Only valid after pushLeft or pushRight, not pop!abstract BytesRef
getSplitDimValue()
Only valid after pushLeft or pushRight, not pop!byte[]
getSplitPackedValue()
boolean
isLeafNode()
boolean
nodeExists()
void
pop()
void
pushLeft()
void
pushRight()
-
-
-
Method Detail
-
pushLeft
public void pushLeft()
-
clone
public abstract BKDReader.IndexTree clone()
Clone, but you are not allowed to pop up past the point where the clone happened.
-
pushRight
public void pushRight()
-
pop
public void pop()
-
isLeafNode
public boolean isLeafNode()
-
nodeExists
public boolean nodeExists()
-
getNodeID
public int getNodeID()
-
getSplitPackedValue
public byte[] getSplitPackedValue()
-
getSplitDim
public int getSplitDim()
Only valid after pushLeft or pushRight, not pop!
-
getSplitDimValue
public abstract BytesRef getSplitDimValue()
Only valid after pushLeft or pushRight, not pop!
-
getLeafBlockFP
public abstract long getLeafBlockFP()
Only valid after pushLeft or pushRight, not pop!
-
getNumLeaves
public int getNumLeaves()
Return the number of leaves below the current node.
-
-