class ValueBTreeCursor<V> extends java.lang.Object implements ValueCursor<V>
| Modifier and Type | Field and Description |
|---|---|
private KeyCursor<V> |
cursor
Store the current position in the array or in the BTree
|
private BTree<V,V> |
valueBtree
The Value sub-btree
|
AFTER_LAST, BEFORE_FIRST| Constructor and Description |
|---|
ValueBTreeCursor(BTree<V,V> valueBtree)
Create an instance
|
| 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
|
boolean |
hasNext()
Tells if the cursor can return a next element
|
boolean |
hasPrev()
Tells if the cursor can return a previous element
|
V |
next()
Find the next key/value
|
V |
prev()
Find the previous key/value
|
int |
size() |
java.lang.String |
toString() |
public boolean hasNext()
public V next()
next in interface ValueCursor<V>public boolean hasPrev()
throws EndOfFileExceededException,
java.io.IOException
hasPrev in interface Cursor<V>EndOfFileExceededExceptionjava.io.IOExceptionpublic void close()
public void beforeFirst()
throws java.io.IOException
beforeFirst in interface Cursor<V>java.io.IOExceptionpublic void afterLast()
throws java.io.IOException
public V prev() throws EndOfFileExceededException, java.io.IOException
prev in interface ValueCursor<V>EndOfFileExceededExceptionjava.io.IOExceptionpublic int size()
size in interface ValueCursor<V>public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()