K - The type for the KeyV - The type for the stored valuepublic class EmptyValueCursor<V> extends java.lang.Object implements ValueCursor<V>
| Modifier and Type | Field and Description |
|---|---|
private long |
creationDate |
private long |
revision |
AFTER_LAST, BEFORE_FIRST| Constructor and Description |
|---|
EmptyValueCursor(long revision)
Creates a new instance of Cursor, starting on a page at a given position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast()
Change the position in the current cursor to set it after the last key
|
void |
beforeFirst()
Change the position in the current cursor before the first key
|
void |
close()
Closes the cursor, thus releases the associated transaction
|
long |
getCreationDate()
Get the creation date
|
long |
getRevision()
Get the current revision
|
boolean |
hasNext()
Tells if the cursor can return a next element
|
boolean |
hasNextKey()
Tells if the cursor can return a next key
|
boolean |
hasPrev()
Tells if the cursor can return a previous element
|
boolean |
hasPrevKey()
Tells if the cursor can return a previous key
|
V |
next()
Find the next key/value
|
V |
prev()
Find the previous key/value
|
int |
size() |
java.lang.String |
toString() |
public EmptyValueCursor(long revision)
transaction - The transaction this operation is protected bystack - The stack of parent's from root to this pagepublic void afterLast()
throws java.io.IOException
public void beforeFirst()
throws java.io.IOException
beforeFirst in interface Cursor<V>java.io.IOExceptionpublic boolean hasNext()
throws EndOfFileExceededException,
java.io.IOException
hasNext in interface Cursor<V>java.io.IOExceptionEndOfFileExceededExceptionpublic boolean hasNextKey()
throws EndOfFileExceededException,
java.io.IOException
java.io.IOExceptionEndOfFileExceededExceptionpublic boolean hasPrev()
throws EndOfFileExceededException,
java.io.IOException
hasPrev in interface Cursor<V>java.io.IOExceptionEndOfFileExceededExceptionpublic boolean hasPrevKey()
throws EndOfFileExceededException,
java.io.IOException
java.io.IOExceptionEndOfFileExceededExceptionpublic V prev() throws EndOfFileExceededException, java.io.IOException
prev in interface ValueCursor<V>EndOfFileExceededExceptionjava.io.IOExceptionpublic V next() throws EndOfFileExceededException, java.io.IOException
next in interface ValueCursor<V>EndOfFileExceededExceptionjava.io.IOExceptionpublic void close()
public long getCreationDate()
public long getRevision()
public int size()
size in interface ValueCursor<V>public java.lang.String toString()
toString in class java.lang.Object