public abstract class AbstractShuttle extends java.lang.Object implements Shuttle
| 限定符和类型 | 字段和说明 |
|---|---|
protected Art |
art |
protected Containers |
containers |
protected int |
depth |
protected boolean |
hasRun |
protected static int |
MAX_DEPTH |
protected org.bitlap.roaringbitmap.art.AbstractShuttle.NodeEntry[] |
stack |
| 构造器和说明 |
|---|
AbstractShuttle(Art art,
Containers containers) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract int |
boundaryNodePosition(Node node,
boolean inRunDirection) |
protected abstract boolean |
currentBeforeHigh(byte[] current,
byte[] high) |
LeafNode |
getCurrentLeafNode()
get the current LeafNode after calling the method moveToNextLeaf
|
void |
initShuttle()
should be called firstly before calling other methods
|
void |
initShuttleFrom(long key)
Call this instead of initShuttle, if the iterator should start from a bound
(upper/lower depending on direction)
|
boolean |
moveToNextLeaf() |
protected abstract boolean |
prefixMismatchIsInRunDirection(byte nodeValue,
byte highValue) |
void |
remove()
remove the current visiting LeafNode and its corresponding value container
|
protected abstract int |
searchMissNextPosition(org.bitlap.roaringbitmap.art.SearchResult result) |
protected abstract int |
visitedNodeNextPosition(Node node,
int pos) |
protected static final int MAX_DEPTH
protected org.bitlap.roaringbitmap.art.AbstractShuttle.NodeEntry[] stack
protected int depth
protected boolean hasRun
protected Art art
protected Containers containers
public AbstractShuttle(Art art, Containers containers)
public void initShuttle()
ShuttleinitShuttle 在接口中 Shuttlepublic void initShuttleFrom(long key)
ShuttleinitShuttleFrom 在接口中 Shuttlekey - the upper/lower bound to start fromprotected abstract boolean currentBeforeHigh(byte[] current,
byte[] high)
public boolean moveToNextLeaf()
moveToNextLeaf 在接口中 Shuttleprotected abstract int visitedNodeNextPosition(Node node, int pos)
public LeafNode getCurrentLeafNode()
ShuttlegetCurrentLeafNode 在接口中 Shuttlepublic void remove()
Shuttleprotected abstract int boundaryNodePosition(Node node, boolean inRunDirection)
protected abstract boolean prefixMismatchIsInRunDirection(byte nodeValue,
byte highValue)
protected abstract int searchMissNextPosition(org.bitlap.roaringbitmap.art.SearchResult result)