Lines Matching refs:cursor

623     try (Cursor<ByteString, ByteString> cursor = txn.openCursor(id2entry.getName()))
625 // Position a cursor on the last data item, and the key should give the highest ID.
626 if (cursor.positionToLastKey())
628 return new EntryID(cursor.getKey());
643 try (final SequentialCursor<?, ?> cursor = dn2id.openChildrenCursor(txn, dn))
645 return cursor.next();
1009 private static EntryIDSet newIDSetFromCursor(SequentialCursor<?, EntryID> cursor, boolean includeCurrent,
1016 entryIDs[offset++] = cursor.getValue().longValue();
1019 while(offset < idSetLimit && cursor.next())
1021 entryIDs[offset++] = cursor.getValue().longValue();
1024 if (offset == idSetLimit && cursor.next())
1179 try (final Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName()))
1181 // Initialize the cursor very close to the starting value.
1182 boolean success = cursor.positionToKeyOrNext(begin);
1185 while (success && cursor.getKey().compareTo(end) < 0)
1196 EntryID entryID = new EntryID(cursor.getValue());
1200 || findDNKeyParent(cursor.getKey()) == baseDNKey.length();
1217 ByteString cookie = cursor.getKey();
1237 success = cursor.next();
1665 try (final SequentialCursor<Void, EntryID> cursor = dn2id.openSubordinatesCursor(txn, entryDN))
1668 if (!cursor.isDefined())
1675 entriesToBeDeleted.add(cursor.getValue().longValue());
1676 cursor.delete();
1679 while (cursor.next())
1686 entriesToBeDeleted.add(cursor.getValue().longValue());
1687 cursor.delete();
1698 try (final Cursor<EntryID, Entry> cursor = id2entry.openCursor(txn))
1703 if (!cursor.positionToKey(entryID.toByteString()))
1708 final Entry entry = cursor.getValue();
1713 cursor.delete();
2102 try (final Cursor<EntryID, Entry> cursor = id2entry.openCursor(txn))
2106 renameSingleEntry(txn, renamedEntryID, cursor, indexBuffer, newTargetDN, renumberEntryIDs, isBaseEntry);
2134 final Cursor<EntryID, Entry> cursor,
2142 if (!cursor.positionToKey(oldEntryID.toByteString()))
2148 final Entry oldEntry = cursor.getValue();
2170 cursor.delete();