Package com.sleepycat.je

Examples of com.sleepycat.je.SecondaryDatabase.openCursor()


       * SecondaryCursor and use additional method signatures for
       * retrieving the primary key also.  Or you can call
       * openSecondaryCursor() to avoid casting.
       */
            txn = exampleEnv.beginTransaction(null, null);
            Cursor cursor = exampleSecDb.openCursor(txn, null);

            while (cursor.getNext(keyEntry, dataEntry, LockMode.DEFAULT) ==
                   OperationStatus.SUCCESS) {

                String key = (String) secKeyBinding.entryToObject(keyEntry);
View Full Code Here


        assert secDbs.size() == 2;

        SecondaryDatabase secDb = secDbs.get(index);
       
        SecondaryCursor mySecCursor = secDb.openCursor(txn, cursorConfig);

        return mySecCursor;

    }
   
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.