K - The type for the KeyV - The type for the stored valuepublic class EmptyTupleCursor<K,V> extends TupleCursor<K,V>
| Modifier and Type | Field and Description |
|---|---|
private long |
creationDate
The creation date
|
private static long |
NO_REVISION
AN empty cursor does not have a revision
|
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.
|
java.lang.String |
toString() |
private static final long NO_REVISION
private long creationDate
public EmptyTupleCursor()
public void afterLast()
throws java.io.IOException
afterLast in class TupleCursor<K,V>java.io.IOExceptionpublic void beforeFirst()
throws java.io.IOException
beforeFirst in class TupleCursor<K,V>java.io.IOExceptionpublic boolean hasNext()
hasNext in class TupleCursor<K,V>public Tuple<K,V> next() throws java.util.NoSuchElementException
next in class TupleCursor<K,V>java.util.NoSuchElementException - There is no element in a EmptyTupleCursorpublic Tuple<K,V> nextKey() throws java.util.NoSuchElementException
nextKey in class TupleCursor<K,V>java.util.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 java.util.NoSuchElementException
prev in class TupleCursor<K,V>java.util.NoSuchElementException - There is no element in a EmptyTupleCursorpublic Tuple<K,V> prevKey() throws java.util.NoSuchElementException
prevKey in class TupleCursor<K,V>java.util.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 java.lang.String toString()
toString in class TupleCursor<K,V>Object.toString()