K
- The key type for the TupleV
- The associated Value typepublic abstract class AbstractTupleCursor<K,V> extends Object implements TupleCursor<K,V>
Constructor and Description |
---|
AbstractTupleCursor() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkNotClosed(String operation)
Check if the cursor is closed for the given operation
|
void |
close()
Closes this Cursor and frees any resources it my have allocated.
|
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated.
|
boolean |
isAfterLast()
Is this Cursor positioned after the last element.
|
boolean |
isBeforeFirst()
Is this Cursor positioned before the first element.
|
boolean |
isClosed()
Checks if this Cursor is closed.
|
boolean |
isFirst()
Is this Cursor positioned at the first element.
|
boolean |
isLast()
Is this Cursor positioned at the last element.
|
Iterator<Tuple<K,V>> |
iterator() |
void |
setClosureMonitor(ClosureMonitor monitor)
Sets a non-null closure monitor to associate with this Cursor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterKey, afterValue, beforeKey, beforeValue
public AbstractTupleCursor()
public final void setClosureMonitor(ClosureMonitor monitor)
setClosureMonitor
in interface Cursor<Tuple<K,V>>
monitor
- the monitor to use for detecting Cursor close eventsprotected final void checkNotClosed(String operation) throws Exception
operation
- The operation that will be applied if the cursor is not closedException
- If there is an issuepublic final boolean isClosed()
public void close() throws Exception
public void close(Exception cause) throws Exception
public boolean isAfterLast() throws Exception
public boolean isBeforeFirst() throws Exception
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.