class SubIndexCursor<V> extends BasicCursor<V>
adapter, cursor, data, key, pkey, updateAllowed| Constructor and Description |
|---|
SubIndexCursor(RangeCursor cursor,
ValueAdapter<V> adapter) |
| Modifier and Type | Method and Description |
|---|---|
EntityCursor<V> |
dup()
Duplicates the cursor at the cursor position.
|
V |
nextDup(LockMode lockMode)
Moves the cursor to the next value with the same key (duplicate) and
returns it, or returns null if no more values are present for the key at
the current position.
|
V |
nextNoDup(LockMode lockMode)
Moves the cursor to the next value with a different key and returns it,
or returns null if there are no more unique keys in the cursor range.
|
V |
prevDup(LockMode lockMode)
Moves the cursor to the previous value with the same key (duplicate) and
returns it, or returns null if no preceding values are present for the
key at the current position.
|
V |
prevNoDup(LockMode lockMode)
Moves the cursor to the preceding value with a different key and returns
it, or returns null if there are no preceding unique keys in the cursor
range.
|
checkInitialized, close, count, countEstimate, current, current, delete, first, first, getCacheMode, iterator, iterator, last, last, next, next, nextDup, nextNoDup, prev, prev, prevDup, prevNoDup, returnValue, setCacheMode, updateSubIndexCursor(RangeCursor cursor, ValueAdapter<V> adapter)
public EntityCursor<V> dup() throws DatabaseException
EntityCursorTransaction and CursorConfig.dup in interface EntityCursor<V>dup in class BasicCursor<V>DatabaseException - the base class for all BDB exceptions.public V nextDup(LockMode lockMode)
EntityCursornextDup in interface EntityCursor<V>nextDup in class BasicCursor<V>lockMode - the lock mode to use for this operation, or null to
use LockMode.DEFAULT.public V nextNoDup(LockMode lockMode) throws DatabaseException
EntityCursorEntityCursor.first().nextNoDup in interface EntityCursor<V>nextNoDup in class BasicCursor<V>lockMode - the lock mode to use for this operation, or null to
use LockMode.DEFAULT.OperationFailureException - if one of the Read Operation
Failures occurs.EnvironmentFailureException - if an unexpected, internal or
environment-wide failure occurs.
DatabaseException - the base class for all BDB exceptions.public V prevDup(LockMode lockMode)
EntityCursorprevDup in interface EntityCursor<V>prevDup in class BasicCursor<V>lockMode - the lock mode to use for this operation, or null to
use LockMode.DEFAULT.public V prevNoDup(LockMode lockMode) throws DatabaseException
EntityCursorEntityCursor.last().prevNoDup in interface EntityCursor<V>prevNoDup in class BasicCursor<V>lockMode - the lock mode to use for this operation, or null to
use LockMode.DEFAULT.OperationFailureException - if one of the Read Operation
Failures occurs.EnvironmentFailureException - if an unexpected, internal or
environment-wide failure occurs.
DatabaseException - the base class for all BDB exceptions.Copyright (c) 2004-2012 Oracle. All rights reserved.