Interface Shuttle

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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()  
      void remove()
      remove the current visiting LeafNode and its corresponding value container
    • Method Detail

      • 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