cursor.setAllowEviction(true);
DatabaseEntry keyEntry = new DatabaseEntry();
DatabaseEntry dataEntry = new DatabaseEntry();
if (cursor.positionFirstOrLast(true)) {
/* Retrieve the first record. */
OperationStatus status = cursor.getCurrentAlreadyLatched
(keyEntry, dataEntry, LockType.NONE);
if (status != OperationStatus.SUCCESS) {