K - The type for the KeyV - The type for the stored valuepublic class EmptyTupleCursor<K,V> extends TupleCursor<K,V>
depth, stack, transaction| Constructor and Description |
|---|
EmptyTupleCursor()
Creates a new instance of EmptyTupleCursor.
|
| 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()
Always -1L for an empty cursor
|
boolean |
hasNext()
Always return false.
|
boolean |
hasNextKey()
Always false
|
boolean |
hasPrev()
Always false
|
boolean |
hasPrevKey()
Always false
|
Tuple<K,V> |
next()
Always throws a NoSuchElementException.
|
Tuple<K,V> |
nextKey()
Always throws a NoSuchElementException.
|
Tuple<K,V> |
prev()
Always throws a NoSuchElementException.
|
Tuple<K,V> |
prevKey()
Always throws a NoSuchElementException.
|
String |
toString() |
public EmptyTupleCursor()
public void afterLast()
throws IOException
afterLast in class TupleCursor<K,V>IOExceptionpublic void beforeFirst()
throws IOException
beforeFirst in class TupleCursor<K,V>IOExceptionpublic boolean hasNext()
hasNext in class TupleCursor<K,V>public Tuple<K,V> next() throws NoSuchElementException
next in class TupleCursor<K,V>NoSuchElementException - There is no element in a EmptyTupleCursorpublic Tuple<K,V> nextKey() throws NoSuchElementException
nextKey in class TupleCursor<K,V>NoSuchElementException - There is no element in a EmptyTupleCursorpublic boolean hasNextKey()
hasNextKey in class TupleCursor<K,V>public boolean hasPrev()
hasPrev in class TupleCursor<K,V>public Tuple<K,V> prev() throws NoSuchElementException
prev in class TupleCursor<K,V>NoSuchElementException - There is no element in a EmptyTupleCursorpublic Tuple<K,V> prevKey() throws NoSuchElementException
prevKey in class TupleCursor<K,V>NoSuchElementException - There is no element in a EmptyTupleCursorpublic boolean hasPrevKey()
hasPrevKey in class TupleCursor<K,V>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>Object.toString()Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.