K
- The type for the KeyV
- The type for the stored valuepublic class EmptyTupleCursor<K,V> extends TupleCursor<K,V>
depth, stack, transaction, tuple
Constructor and Description |
---|
EmptyTupleCursor(long revision)
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() |
public EmptyTupleCursor(long revision)
transaction
- The transaction this operation is protected bystack
- The stack of parent's from root to this pagepublic void afterLast() throws IOException
afterLast
in class TupleCursor<K,V>
IOException
public void beforeFirst() throws IOException
beforeFirst
in class TupleCursor<K,V>
IOException
public boolean hasNext() throws EndOfFileExceededException, IOException
hasNext
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public Tuple<K,V> next() throws EndOfFileExceededException, IOException
next
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public Tuple<K,V> nextKey() throws EndOfFileExceededException, IOException
nextKey
in class TupleCursor<K,V>
EndOfFileExceededException
IOException
public boolean hasNextKey() throws EndOfFileExceededException, IOException
hasNextKey
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public boolean hasPrev() throws EndOfFileExceededException, IOException
hasPrev
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public Tuple<K,V> prev() throws EndOfFileExceededException, IOException
prev
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public Tuple<K,V> prevKey() throws EndOfFileExceededException, IOException
prevKey
in class TupleCursor<K,V>
EndOfFileExceededException
IOException
public boolean hasPrevKey() throws EndOfFileExceededException, IOException
hasPrevKey
in class TupleCursor<K,V>
IOException
EndOfFileExceededException
public void close()
close
in class TupleCursor<K,V>
public long getCreationDate()
getCreationDate
in class TupleCursor<K,V>
public long getRevision()
getRevision
in class TupleCursor<K,V>
public String toString()
toString
in class TupleCursor<K,V>
Copyright © 2012–2014 Apache Mavibot Project Parent. All rights reserved.