Package org.chaidb.db.api.keys

Examples of org.chaidb.db.api.keys.IntKey


    private static void testLookup() throws ChaiDBException {
        Database db = new Database("D:\\temp");
        BTree btree = db.openBTree("test.idb", BTreeType.HYPER_BTREE);
        try {
            IntKey key = new IntKey(1);
            btree.acquire(LockType.READ);
            DuplicatedKeyIterator it = btree.lookupValues(key);
            while (it.hasNext()) {
                byte[] bytes = (byte[]) it.next();
                for (int i = 0; i < bytes.length; i++) {
View Full Code Here

TOP

Related Classes of org.chaidb.db.api.keys.IntKey

Copyright © 2018 www.massapicom. 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.