Class BTreeSelection<USERKEY,​STOREKEY>

  • All Implemented Interfaces:
    java.lang.Iterable<USERKEY>

    public class BTreeSelection<USERKEY,​STOREKEY>
    extends java.lang.Object
    implements java.lang.Iterable<USERKEY>
    Construct a BTreeSelection from a lower key to an upper key (lower,upper].
    • Constructor Detail

      • BTreeSelection

        public BTreeSelection​(BTreeLocation<USERKEY,​STOREKEY> begin,
                              BTreeLocation<USERKEY,​STOREKEY> end)
        Build a new selection from begin to end exclusive. Begin must be before end or this will not terminate when iterated over.
        Parameters:
        begin - Begin, inclusive.
        end - End, exclusive.
      • BTreeSelection

        public BTreeSelection​(BTree<USERKEY,​STOREKEY,​?> btree,
                              USERKEY begin,
                              USERKEY end)
        Build a new selection from begin to end exclusive. Begin must be before end or this will not terminate when iterated over.
        Parameters:
        begin - Begin, inclusive.
        end - End, exclusive.
    • Method Detail

      • iterator

        public java.util.Iterator<USERKEY> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<USERKEY>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object