Package Functions | |
DataCursor (DataView view, boolean writeAllowed) throws DatabaseException | |
DataCursor (DataView view, boolean writeAllowed, Object singleKey) throws DatabaseException | |
DataCursor (DataView view, boolean writeAllowed, Object beginKey, boolean beginInclusive, Object endKey, boolean endInclusive) throws DatabaseException | |
DataCursor (DataView view, DataCursor[] indexCursors, JoinConfig joinConfig, boolean closeIndexCursors) throws DatabaseException | |
DataCursor | cloneCursor () throws DatabaseException |
RangeCursor | getCursor () |
void | close () throws DatabaseException |
DataView | getView () |
KeyRange | getRange () |
boolean | isWriteAllowed () |
Object | getCurrentKey () throws DatabaseException |
Object | getCurrentValue () throws DatabaseException |
boolean | hasRecNumAccess () |
int | getCurrentRecordNumber () throws DatabaseException |
OperationStatus | getCurrent (boolean lockForWrite) throws DatabaseException |
OperationStatus | getFirst (boolean lockForWrite) throws DatabaseException |
OperationStatus | getNext (boolean lockForWrite) throws DatabaseException |
OperationStatus | getNextNoDup (boolean lockForWrite) throws DatabaseException |
OperationStatus | getNextDup (boolean lockForWrite) throws DatabaseException |
OperationStatus | getLast (boolean lockForWrite) throws DatabaseException |
OperationStatus | getPrev (boolean lockForWrite) throws DatabaseException |
OperationStatus | getPrevNoDup (boolean lockForWrite) throws DatabaseException |
OperationStatus | getPrevDup (boolean lockForWrite) throws DatabaseException |
OperationStatus | getSearchKey (Object key, Object value, boolean lockForWrite) throws DatabaseException |
OperationStatus | getSearchKeyRange (Object key, Object value, boolean lockForWrite) throws DatabaseException |
OperationStatus | getSearchBoth (Object key, Object value, boolean lockForWrite) throws DatabaseException |
OperationStatus | find (Object value, boolean findFirst) throws DatabaseException |
int | count () throws DatabaseException |
OperationStatus | putCurrent (Object value) throws DatabaseException |
OperationStatus | putAfter (Object value) throws DatabaseException |
OperationStatus | putBefore (Object value) throws DatabaseException |
OperationStatus | put (Object key, Object value, Object[] oldValue, boolean useCurrentKey) throws DatabaseException |
OperationStatus | putNoOverwrite (Object key, Object value, boolean useCurrentKey) throws DatabaseException |
OperationStatus | putNoDupData (Object key, Object value, Object[] oldValue, boolean useCurrentKey) throws DatabaseException |
void | useRangeKey () |
OperationStatus | delete () throws DatabaseException |
LockMode | getLockMode (boolean lockForWrite) |
This class operates on a view and takes care of reading and updating indices, calling bindings, constraining access to a key range, etc.
Definition at line 30 of file DataCursor.java.
|
Creates a cursor for a given view. Definition at line 47 of file DataCursor.java. |
|
Creates a cursor for a given view and single key range. Definition at line 56 of file DataCursor.java. References com::sleepycat::collections::DataView::subRange(). |
|
Creates a cursor for a given view and key range. Definition at line 65 of file DataCursor.java. References com::sleepycat::collections::DataView::subRange(). |
|
Creates a join cursor. Definition at line 77 of file DataCursor.java. References com::sleepycat::collections::DataView::db, and com::sleepycat::collections::DataView::isSecondary(). |
|
Clones a cursor preserving the current position. Definition at line 100 of file DataCursor.java. References cursor, com::sleepycat::collections::RangeCursor::dup(), initThangs(), keyThang, primaryKeyThang, and valueThang. Referenced by com::sleepycat::collections::StoredIterator::clone(). |
|
Closes the associated cursor. Definition at line 163 of file DataCursor.java. References close(), com::sleepycat::collections::CurrentTransaction::closeCursor(), com::sleepycat::collections::DataView::currentTxn, and com::sleepycat::collections::RangeCursor::getCursor(). Referenced by com::sleepycat::collections::DataView::append(), com::sleepycat::collections::DataView::clear(), close(), com::sleepycat::collections::DataView::isEmpty(), and com::sleepycat::collections::DataView::join(). |
|
Calls Cursor.count(), no join cursor allowed. Definition at line 491 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::count(). Referenced by com::sleepycat::collections::StoredIterator::count(), and com::sleepycat::collections::StoredValueSet::size(). |
|
Perform an arbitrary database 'delete' operation. Definition at line 642 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::delete(). Referenced by com::sleepycat::collections::DataView::clear(), com::sleepycat::collections::StoredIterator::remove(), and com::sleepycat::collections::StoredEntrySet::remove(). |
|
Find the given value using getSearchBoth if possible or a sequential scan otherwise, no join cursor allowed. Definition at line 463 of file DataCursor.java. References com::sleepycat::collections::DataView::dupsAllowed, com::sleepycat::collections::DataView::entityBinding, getFirst(), getLast(), getNext(), getPrev(), getSearchBoth(), com::sleepycat::collections::DataView::isSecondary(), and com::sleepycat::collections::DataView::useValue(). |
|
Binding version of Cursor.getCurrent(), no join cursor allowed. Definition at line 262 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::getCurrent(), and getLockMode(). |
|
Returns the key object for the last record read. Definition at line 213 of file DataCursor.java. References com::sleepycat::collections::DataView::keyBinding, and com::sleepycat::collections::DataView::makeKey(). |
|
Returns the record number for the last record read. Definition at line 242 of file DataCursor.java. References com::sleepycat::collections::DataView::btreeRecNumDb, com::sleepycat::collections::RangeCursor::getCursor(), and getLockMode(). Referenced by com::sleepycat::collections::StoredIterator::nextIndex(), and com::sleepycat::collections::StoredIterator::previousIndex(). |
|
Returns the value object for the last record read. Definition at line 225 of file DataCursor.java. References com::sleepycat::collections::DataView::makeValue(). |
|
Returns the internal range cursor. Definition at line 126 of file DataCursor.java. Referenced by com::sleepycat::collections::DataView::append(). |
|
Binding version of Cursor.getFirst(), join cursor is allowed. Definition at line 273 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::getFirst(), and getLockMode(). Referenced by com::sleepycat::collections::DataView::clear(), find(), com::sleepycat::collections::DataView::isEmpty(), and com::sleepycat::collections::StoredValueSet::size(). |
|
Binding version of Cursor.getLast(), no join cursor allowed. Definition at line 329 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::getLast(), and getLockMode(). Referenced by find(). |
|
Returns the lock mode to use for a getXxx() operation. Definition at line 652 of file DataCursor.java. References com::sleepycat::collections::DataView::currentTxn, and com::sleepycat::collections::CurrentTransaction::getWriteLockMode(). Referenced by getCurrent(), getCurrentRecordNumber(), getFirst(), getLast(), getNext(), getNextDup(), getNextNoDup(), getPrev(), getPrevDup(), getPrevNoDup(), getSearchBoth(), getSearchKeyRange(), and putNoDupData(). |
|
Binding version of Cursor.getNext(), join cursor is allowed. Definition at line 288 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getNext(). Referenced by com::sleepycat::collections::DataView::clear(), and find(). |
|
Binding version of Cursor.getNextDup(), no join cursor allowed. Definition at line 318 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getNextDup(). |
|
Binding version of Cursor.getNext(), join cursor is allowed. Definition at line 303 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getNextNoDup(). |
|
Binding version of Cursor.getPrev(), no join cursor allowed. Definition at line 340 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getPrev(). Referenced by find(). |
|
Binding version of Cursor.getPrevDup(), no join cursor allowed. Definition at line 362 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getPrevDup(). |
|
Binding version of Cursor.getPrevNoDup(), no join cursor allowed. Definition at line 351 of file DataCursor.java. References getLockMode(), and com::sleepycat::collections::RangeCursor::getPrevNoDup(). |
|
Returns the range for this cursor. Definition at line 196 of file DataCursor.java. |
|
Binding version of Cursor.getSearchBoth(), no join cursor allowed. Unlike SecondaryCursor.getSearchBoth, for a secondary this searches for the primary value not the primary key. Definition at line 425 of file DataCursor.java. References getLockMode(), com::sleepycat::collections::RangeCursor::getNextDup(), com::sleepycat::collections::RangeCursor::getSearchBoth(), com::sleepycat::collections::RangeCursor::getSearchKey(), com::sleepycat::collections::DataView::isSecondary(), com::sleepycat::collections::DataView::useKey(), and com::sleepycat::collections::DataView::useValue(). Referenced by com::sleepycat::collections::StoredEntrySet::contains(), find(), and com::sleepycat::collections::StoredEntrySet::remove(). |
|
Binding version of Cursor.getSearchKey(), no join cursor allowed. Searches by record number in a BTREE-RECNO db with RECNO access. Definition at line 374 of file DataCursor.java. References com::sleepycat::collections::DataView::useKey(). Referenced by com::sleepycat::collections::StoredList::add(), com::sleepycat::collections::StoredList::addAll(), and com::sleepycat::collections::DataView::join(). |
|
Binding version of Cursor.getSearchKeyRange(), no join cursor allowed. Definition at line 406 of file DataCursor.java. References getLockMode(), com::sleepycat::collections::RangeCursor::getSearchKeyRange(), and com::sleepycat::collections::DataView::useKey(). |
|
Returns the view for this cursor. Definition at line 188 of file DataCursor.java. |
|
Returns whether record number access is allowed. Definition at line 234 of file DataCursor.java. References com::sleepycat::collections::DataView::recNumAccess. |
|
Returns whether write is allowed for this cursor, as specified to the constructor. Definition at line 205 of file DataCursor.java. |
|
Binding version of Cursor.put(), optionally returning the old value and optionally using the current key instead of the key parameter. Definition at line 555 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::put(). |
|
Binding version of Cursor.putAfter(). Definition at line 532 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::putAfter(), and com::sleepycat::collections::DataView::useValue(). Referenced by com::sleepycat::collections::StoredIterator::add(). |
|
Binding version of Cursor.putBefore(). Definition at line 543 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::putBefore(), and com::sleepycat::collections::DataView::useValue(). Referenced by com::sleepycat::collections::StoredList::add(), com::sleepycat::collections::StoredIterator::add(), and com::sleepycat::collections::StoredList::addAll(). |
|
Binding version of Cursor.putCurrent(). Definition at line 501 of file DataCursor.java. References com::sleepycat::collections::DataView::dupsOrdered, com::sleepycat::collections::RangeCursor::getCurrent(), com::sleepycat::collections::DataView::ordered, com::sleepycat::collections::RangeCursor::putCurrent(), and com::sleepycat::collections::DataView::useValue(). Referenced by com::sleepycat::collections::StoredIterator::set(). |
|
Binding version of Cursor.putNoDupData(), optionally returning the old value and optionally using the current key instead of the key parameter. Definition at line 579 of file DataCursor.java. References com::sleepycat::collections::DataView::dupsAllowed, com::sleepycat::collections::DataView::dupsOrdered, getLockMode(), com::sleepycat::collections::RangeCursor::getSearchBoth(), com::sleepycat::collections::RangeCursor::put(), com::sleepycat::collections::RangeCursor::putNoDupData(), and com::sleepycat::collections::RangeCursor::putNoOverwrite(). Referenced by com::sleepycat::collections::StoredValueSet::add(), and com::sleepycat::collections::StoredIterator::add(). |
|
Binding version of Cursor.putNoOverwrite(), optionally using the current key instead of the key parameter. Definition at line 567 of file DataCursor.java. References com::sleepycat::collections::RangeCursor::putNoOverwrite(). Referenced by com::sleepycat::collections::StoredKeySet::add(). |
|
Sets the key entry to the begin key of a single key range, so the next time a putXxx() method is called that key will be used. Definition at line 632 of file DataCursor.java. References com::sleepycat::collections::KeyRange::beginKey, and com::sleepycat::collections::KeyRange::singleKey. Referenced by com::sleepycat::collections::StoredValueSet::add(). |