|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.BasicCursor<V>
com.sleepycat.persist.SubIndexCursor<V>
class SubIndexCursor<V>
The cursor for a SubIndex treats Dup and NoDup operations specially because the SubIndex never has duplicates -- the keys are primary keys. So a next/prevDup operation always returns null, and a next/prevNoDup operation actually does next/prev.
Field Summary |
---|
Fields inherited from class com.sleepycat.persist.BasicCursor |
---|
adapter, cursor, data, key, pkey |
Constructor Summary | |
---|---|
SubIndexCursor(RangeCursor cursor,
ValueAdapter<V> adapter)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.sleepycat.persist.BasicCursor |
---|
checkInitialized, close, count, current, current, delete, first, first, iterator, iterator, last, last, next, next, nextDup, nextNoDup, prev, prev, prevDup, prevNoDup, returnValue, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
SubIndexCursor(RangeCursor cursor, ValueAdapter<V> adapter)
Method Detail |
---|
public EntityCursor<V> dup() throws DatabaseException
EntityCursor
Transaction
and CursorConfig
.
dup
in interface EntityCursor<V>
dup
in class BasicCursor<V>
DatabaseException
public V nextDup(LockMode lockMode) throws DatabaseException
EntityCursor
nextDup
in interface EntityCursor<V>
nextDup
in class BasicCursor<V>
lockMode
- the lock mode to use for this operation, or null to
use LockMode.DEFAULT
.
DatabaseException
public V nextNoDup(LockMode lockMode) throws DatabaseException
EntityCursor
EntityCursor.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
.
DatabaseException
public V prevDup(LockMode lockMode) throws DatabaseException
EntityCursor
prevDup
in interface EntityCursor<V>
prevDup
in class BasicCursor<V>
lockMode
- the lock mode to use for this operation, or null to
use LockMode.DEFAULT
.
DatabaseException
public V prevNoDup(LockMode lockMode) throws DatabaseException
EntityCursor
EntityCursor.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
.
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |