|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.util.keyrange.RangeCursor
public class RangeCursor
A cursor-like interface that enforces a key range. The method signatures are actually those of SecondaryCursor, but the pKey parameter may be null. It was done this way to avoid doubling the number of methods.
This is not a fully general implementation of a range cursor and should not be used directly by applications; however, it may evolve into a generally useful range cursor some day.
Constructor Summary | |
---|---|
RangeCursor(KeyRange range,
KeyRange pkRange,
boolean sortedDups,
Cursor cursor)
Creates a range cursor with a duplicate range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeCursor(KeyRange range, KeyRange pkRange, boolean sortedDups, Cursor cursor) throws DatabaseException
DatabaseException
Method Detail |
---|
public RangeCursor dup(boolean samePosition) throws DatabaseException
DatabaseException
public boolean isInitialized()
public Cursor getCursor()
public OperationStatus getFirst(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getLast(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getNext(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getNextNoDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getPrev(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getPrevNoDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getSearchKey(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getSearchBoth(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getSearchKeyRange(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getSearchBothRange(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getSearchRecordNumber(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getNextDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getPrevDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public OperationStatus getCurrent(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseException
public void close() throws DatabaseException
DatabaseException
public int count() throws DatabaseException
DatabaseException
public OperationStatus delete() throws DatabaseException
DatabaseException
public OperationStatus put(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseException
public OperationStatus putNoOverwrite(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseException
public OperationStatus putNoDupData(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseException
public OperationStatus putCurrent(DatabaseEntry data) throws DatabaseException
DatabaseException
public OperationStatus putAfter(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseException
public OperationStatus putBefore(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseException
protected Cursor dupCursor(Cursor cursor, boolean samePosition) throws DatabaseException
DatabaseException
protected void closeCursor(Cursor cursor) throws DatabaseException
DatabaseException
protected boolean checkRecordNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |