Modifier and Type | Field and Description |
---|---|
protected int |
depth
The stack's depth
|
protected org.apache.directory.mavibot.btree.ParentPos<K,K>[] |
stack
The stack of pages from the root down to the leaf
|
protected ReadTransaction<K,K> |
transaction
The transaction used for this cursor
|
Modifier | Constructor and Description |
---|---|
protected |
KeyCursor()
Creates a new instance of Cursor.
|
|
KeyCursor(ReadTransaction<K,K> transaction,
org.apache.directory.mavibot.btree.ParentPos<K,K>[] 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
|
K |
next()
Find the next key
|
K |
nextKey()
Get the next key.
|
K |
prev()
Find the previous key
|
K |
prevKey()
Get the previous key.
|
String |
toString() |
protected org.apache.directory.mavibot.btree.ParentPos<K,K>[] stack
protected int depth
protected ReadTransaction<K,K> transaction
protected KeyCursor()
public KeyCursor(ReadTransaction<K,K> transaction, org.apache.directory.mavibot.btree.ParentPos<K,K>[] 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 K next() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public K nextKey() throws EndOfFileExceededException, IOException
public boolean hasNextKey() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public boolean hasPrev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public K prev() throws EndOfFileExceededException, IOException
IOException
EndOfFileExceededException
public K 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.