K
- The type for the KeyV
- The type for the stored valuepublic class Cursor<K,V> extends Object
Modifier and Type | Method and Description |
---|---|
void |
afterLast()
Places the cursor at the end of the last position
|
void |
beforeFirst()
moves the cursor to the same position that was given at the time of instantiating the cursor.
|
void |
close()
Closes the cursor, thus releases the associated transaction
|
long |
getCreationDate() |
long |
getRevision() |
boolean |
hasNext()
Tells if the cursor can return a next element
|
boolean |
hasPrev()
Tells if the cursor can return a previous element
|
void |
moveToNextNonDuplicateKey()
Moves the cursor to the next non-duplicate key.
|
void |
moveToPrevNonDuplicateKey()
Moves the cursor to the previous non-duplicate key
If the BTree contains
<1,0>
<1,1>
<2,0>
<2,1>
and cursor is present at <2,1> then the cursor will move to <1,1>
|
Tuple<K,V> |
next()
Find the next key/value
|
Tuple<K,V> |
prev()
Find the previous key/value
|
public Tuple<K,V> next() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public Tuple<K,V> prev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public boolean hasNext() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public boolean hasPrev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public void close()
public long getRevision()
public long getCreationDate()
public void moveToNextNonDuplicateKey() throws EndOfFileExceededException, IOException
public void moveToPrevNonDuplicateKey() throws EndOfFileExceededException, IOException
public void beforeFirst() throws IOException
IOException
public void afterLast() throws IOException
IOException
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.