K
- The type for the KeyV
- The type for the stored valuepublic class CursorImpl<K,V> extends Object implements TupleCursor<K,V>
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
next
in interface TupleCursor<K,V>
IOException
EndOfFileExceededException
public Tuple<K,V> prev() throws EndOfFileExceededException, IOException
prev
in interface TupleCursor<K,V>
IOException
EndOfFileExceededException
public boolean hasNext() throws EndOfFileExceededException, IOException
hasNext
in interface Cursor<K>
IOException
EndOfFileExceededException
public boolean hasPrev() throws EndOfFileExceededException, IOException
hasPrev
in interface Cursor<K>
IOException
EndOfFileExceededException
public void close()
public long getRevision()
getRevision
in interface TupleCursor<K,V>
public long getCreationDate()
getCreationDate
in interface TupleCursor<K,V>
public void moveToNextNonDuplicateKey() throws EndOfFileExceededException, IOException
moveToNextNonDuplicateKey
in interface TupleCursor<K,V>
EndOfFileExceededException
IOException
public void moveToPrevNonDuplicateKey() throws EndOfFileExceededException, IOException
moveToPrevNonDuplicateKey
in interface TupleCursor<K,V>
EndOfFileExceededException
IOException
public void beforeFirst() throws IOException
beforeFirst
in interface Cursor<K>
IOException
public void afterLast() throws IOException
afterLast
in interface Cursor<K>
IOException
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.