接口 Shuttle

所有已知实现类:
AbstractShuttle, BackwardShuttle, ForwardShuttle

public interface Shuttle
  • 方法概要

    修饰符和类型
    方法
    说明
    get the current LeafNode after calling the method moveToNextLeaf
    void
    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
     
    void
    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