Package org.xtreemfs.babudb.index

Examples of org.xtreemfs.babudb.index.LSMTree.rangeLookup()


        while (it.hasNext())
            assertEquals(itExpected.next(), it.next().getValue());
        assertFalse(itExpected.hasNext());
       
        // real range lookup, snapshot 1, ascending
        it = tree.rangeLookup("2".getBytes(), "5".getBytes(), snap1, true);
        itExpected = map1.subMap("2".getBytes(), "5".getBytes()).values().iterator();
        while (it.hasNext())
            assertEquals(itExpected.next(), it.next().getValue());
        assertFalse(itExpected.hasNext());
       
View Full Code Here


        while (it.hasNext())
            assertEquals(itExpected.next(), it.next().getValue());
        assertFalse(itExpected.hasNext());
       
        // real range lookup, snapshot 1, descending
        it = tree.rangeLookup("5".getBytes(), "2".getBytes(), snap1, false);
        itExpected = map1.descendingMap().subMap("5".getBytes(), "2".getBytes()).values().iterator();
        while (it.hasNext())
            assertEquals(itExpected.next(), it.next().getValue());
        assertFalse(itExpected.hasNext());
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.