K
- The type for the KeyV
- The type for the stored valuepublic class TupleCursor<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
depth
The stack's depth
|
protected org.apache.directory.mavibot.btree.ParentPos<K,V>[] |
stack
The stack of pages from the root down to the leaf
|
protected ReadTransaction<K,V> |
transaction
The transaction used for this cursor
|
Modifier | Constructor and Description |
---|---|
protected |
TupleCursor()
Creates a new instance of Cursor.
|
|
TupleCursor(ReadTransaction<K,V> transaction,
org.apache.directory.mavibot.btree.ParentPos<K,V>[] stack,
int depth)
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() |
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
|
Tuple<K,V> |
next()
Find the next key/value
|
Tuple<K,V> |
nextKey()
Get the next non-duplicate key.
|
Tuple<K,V> |
prev()
Find the previous key/value
|
Tuple<K,V> |
prevKey()
Get the previous non-duplicate key.
|
String |
toString() |
protected org.apache.directory.mavibot.btree.ParentPos<K,V>[] stack
protected int depth
protected ReadTransaction<K,V> transaction
protected TupleCursor()
public TupleCursor(ReadTransaction<K,V> transaction, org.apache.directory.mavibot.btree.ParentPos<K,V>[] stack, int depth)
transaction
- The transaction this operation is protected bystack
- The stack of parent's from root to this pagepublic void afterLast() throws IOException
IOException
public void beforeFirst() throws IOException
IOException
public boolean hasNext() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public Tuple<K,V> next() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public Tuple<K,V> nextKey() throws EndOfFileExceededException, IOException
EndOfFileExceededException
IOException
public boolean hasNextKey() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public boolean hasPrev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public Tuple<K,V> prev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public Tuple<K,V> prevKey() throws EndOfFileExceededException, IOException
EndOfFileExceededException
IOException
public boolean hasPrevKey() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public void close()
public long getCreationDate()
public long getRevision()
Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.