Class LeafNodeIterator

  • All Implemented Interfaces:
    java.util.Iterator<LeafNode>

    public class LeafNodeIterator
    extends java.lang.Object
    implements java.util.Iterator<LeafNode>
    • Constructor Detail

      • LeafNodeIterator

        public LeafNodeIterator​(Art art,
                                Containers containers)
        constructor
        Parameters:
        art - the ART
        containers - the containers
      • LeafNodeIterator

        public LeafNodeIterator​(Art art,
                                boolean reverse,
                                Containers containers)
        constructor
        Parameters:
        art - the ART
        reverse - false: ascending order,true: the descending order
        containers - the containers
      • LeafNodeIterator

        public LeafNodeIterator​(Art art,
                                boolean reverse,
                                Containers containers,
                                long from)
        constructor
        Parameters:
        art - the ART
        reverse - false: ascending order,true: the descending order
        containers - the containers
        from - starting upper/lower bound
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<LeafNode>
      • next

        public LeafNode next()
        Specified by:
        next in interface java.util.Iterator<LeafNode>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<LeafNode>
      • seek

        public void seek​(long boundval)
        Move this iterator to the leaf that contains `boundval`. If no leaf contains `boundval`, then move to the next largest (on forward iterators or next smallest (on backwards iterators).
      • peekNext

        public LeafNode peekNext()
        Return the next leaf without advancing the iterator.
        Returns:
        the next leaf