- 所有已知实现类:
AbstractShuttle,BackwardShuttle,ForwardShuttle
public interface Shuttle
-
方法概要
修饰符和类型方法说明get the current LeafNode after calling the method moveToNextLeafvoidshould be called firstly before calling other methodsvoidinitShuttleFrom(long key) Call this instead of initShuttle, if the iterator should start from a bound (upper/lower depending on direction)booleanvoidremove()remove the current visiting LeafNode and its corresponding value container
-
方法详细资料
-
initShuttle
void initShuttle()should be called firstly before calling other methods -
initShuttleFrom
void initShuttleFrom(long key) Call this instead of initShuttle, if the iterator should start from a bound (upper/lower depending on direction)- 参数:
key- the upper/lower bound to start from
-
moveToNextLeaf
boolean moveToNextLeaf()- 返回:
- true: has a LeafNode, false: has no LeafNode
-
getCurrentLeafNode
LeafNode getCurrentLeafNode()get the current LeafNode after calling the method moveToNextLeaf- 返回:
- the current visiting LeafNode
-
remove
void remove()remove the current visiting LeafNode and its corresponding value container
-