Interface Shuttle

All Known Implementing Classes:
AbstractShuttle, BackwardShuttle, ForwardShuttle

public interface Shuttle
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • Method Details

    • 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)
      Parameters:
      key - the upper/lower bound to start from
    • moveToNextLeaf

      boolean moveToNextLeaf()
      Returns:
      true: has a LeafNode, false: has no LeafNode
    • getCurrentLeafNode

      LeafNode getCurrentLeafNode()
      get the current LeafNode after calling the method moveToNextLeaf
      Returns:
      the current visiting LeafNode
    • remove

      void remove()
      remove the current visiting LeafNode and its corresponding value container