K - The type for the KeyV - The type for the stored valuepublic class EmptyValueCursor<V> extends Object implements ValueCursor<V>
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() |
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 IOException
afterLast in interface Cursor<V>IOExceptionpublic void beforeFirst()
throws IOException
beforeFirst in interface Cursor<V>IOExceptionpublic boolean hasNext()
throws EndOfFileExceededException,
IOException
hasNext in interface Cursor<V>IOExceptionEndOfFileExceededExceptionpublic boolean hasNextKey()
throws EndOfFileExceededException,
IOException
IOExceptionEndOfFileExceededExceptionpublic boolean hasPrev()
throws EndOfFileExceededException,
IOException
hasPrev in interface Cursor<V>IOExceptionEndOfFileExceededExceptionpublic boolean hasPrevKey()
throws EndOfFileExceededException,
IOException
IOExceptionEndOfFileExceededExceptionpublic V prev() throws EndOfFileExceededException, IOException
prev in interface ValueCursor<V>EndOfFileExceededExceptionIOExceptionpublic V next() throws EndOfFileExceededException, IOException
next in interface ValueCursor<V>EndOfFileExceededExceptionIOExceptionpublic void close()
public long getCreationDate()
public long getRevision()
public int size()
size in interface ValueCursor<V>Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.