• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/util/keyrange/

Lines Matching defs:cursor

20  * A cursor-like interface that enforces a key range.  The method signatures
24 * <p>This is not a fully general implementation of a range cursor and should
26 * generally useful range cursor some day.</p>
33 * The cursor and secondary cursor are the same object. The secCursor is
36 private Cursor cursor;
47 * and the cursor is a secondary cursor. It further restricts the range of
71 * the cursor. It is used to implement the getNext/Prev logic for doing a
72 * getFirst/Last when the cursor is not initialized. We can't rely on
73 * Cursor to do that for us, since if we position the underlying cursor
75 * underlying cursor to uninitialized. A range cursor always starts in the
81 * Creates a range cursor with a duplicate range.
86 Cursor cursor)
95 this.cursor = cursor;
103 * Create a cloned range cursor. The caller must clone the underlying
104 * cursor before using this constructor, because cursor open/close is
112 c.cursor = dupCursor(cursor, samePosition);
125 if (cursor instanceof SecondaryCursor) {
126 secCursor = (SecondaryCursor) cursor;
143 * Returns whether the cursor is initialized at a valid position.
150 * Returns the underlying cursor. Used for cloning.
153 return cursor;
169 * Dups the cursor, sets the cursor and secCursor fields to the duped
170 * cursor, and returns the old cursor. Always call endOperation in a
173 * <p>If the returned cursor == the cursor field, the cursor is
180 Cursor oldCursor = cursor;
182 cursor = dupCursor(cursor, true);
184 secCursor = (SecondaryCursor) cursor;
187 return cursor;
193 * If the operation succeded, leaves the duped cursor in place and closes
195 * place and closes the duped cursor. oldCursor may be null if
197 * the cursor. Always call endOperation when a successful operation ends,
206 if (oldCursor != null && oldCursor != cursor) {
220 if (oldCursor != null && oldCursor != cursor) {
221 closeCursor(cursor);
222 cursor = oldCursor;
224 secCursor = (SecondaryCursor) cursor;
810 return cursor.getCurrent(key, data, lockMode);
821 closeCursor(cursor);
827 return cursor.count();
833 return cursor.delete();
839 return cursor.put(key, data);
846 return cursor.putNoOverwrite(key, data);
852 return cursor.putNoDupData(key, data);
858 return cursor.putCurrent(data);
864 return DbCompat.putAfter(cursor, key, data);
870 return DbCompat.putBefore(cursor, key, data);
879 return cursor.getFirst(privKey, privData, lockMode);
889 return cursor.getLast(privKey, privData, lockMode);
899 return cursor.getNext(privKey, privData, lockMode);
909 return cursor.getNextDup(privKey, privData, lockMode);
920 return cursor.getNextNoDup(privKey, privData, lockMode);
930 return cursor.getPrev(privKey, privData, lockMode);
940 return cursor.getPrevDup(privKey, privData, lockMode);
951 return cursor.getPrevNoDup(privKey, privData, lockMode);
965 return cursor.getSearchKey(privKey, privData, lockMode);
979 return cursor.getSearchKeyRange(privKey, privData, lockMode);
993 return cursor.getSearchBoth(privKey, privData, lockMode);
1007 return cursor.getSearchBothRange(privKey, privData, lockMode);
1021 return DbCompat.getSearchRecordNumber(cursor, privKey, privData,
1028 * by the collections API to implement cursor pooling for CDS.
1032 * Dups the given cursor.
1034 protected Cursor dupCursor(Cursor cursor, boolean samePosition)
1037 return cursor.dup(samePosition);
1041 * Closes the given cursor.
1043 protected void closeCursor(Cursor cursor)
1046 cursor.close();
1054 * record number into the DB cursor. This behavior is required by the