public class DupsContainerCursor<K,V> extends AbstractTupleCursor<K,DupsContainer<V>>
| Constructor and Description |
|---|
DupsContainerCursor(JdbmTable<K,V> table)
Creates a Cursor over the tuples of a JDBM table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(Tuple<K,DupsContainer<V>> element) |
void |
afterKey(K key)
An alternative to calling after(Tuple) which often may require
wrapping a key in a newly created Tuple object that may be unnecessary.
|
void |
afterLast() |
void |
afterValue(K key,
DupsContainer<V> value)
An alternative to calling after(Tuple) which often may require
wrapping a key and a value in a newly created Tuple object that may be
unnecessary.
|
boolean |
available() |
void |
before(Tuple<K,DupsContainer<V>> element)
Positions this Cursor before the key of the supplied tuple.
|
void |
beforeFirst() |
void |
beforeKey(K key)
An alternative to calling before(Tuple) which often may require
wrapping a key in a newly created Tuple object that may be unnecessary.
|
void |
beforeValue(K key,
DupsContainer<V> value)
An alternative to calling before(Tuple) which often may require
wrapping a key and a value in a newly created Tuple object that may be
unnecessary.
|
boolean |
first() |
Tuple<K,DupsContainer<V>> |
get() |
boolean |
isElementReused() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, close, close, isClosed, iterator, setClosureMonitorpublic DupsContainerCursor(JdbmTable<K,V> table) throws IOException
table - the JDBM Table to build a Cursor overIOException - of there are problems accessing the BTreepublic boolean available()
public void beforeKey(K key) throws Exception
TupleCursorkey - the key to advance just beforeException - if there are faults peforming this operationpublic void afterKey(K key) throws Exception
TupleCursorkey - the key to advance just after the last valueException - if there are faults peforming this operationpublic void beforeValue(K key, DupsContainer<V> value) throws Exception
TupleCursorkey - the key of the value to advance just beforevalue - the value to advance just beforeUnsupportedOperationException - if duplicate keys not supporrtedException - if there are faults peforming this operationpublic void afterValue(K key, DupsContainer<V> value) throws Exception
TupleCursorkey - the key of the value to advance just aftervalue - the value to advance just afterUnsupportedOperationException - if duplicate keys not supporrtedException - if there are faults peforming this operationpublic void before(Tuple<K,DupsContainer<V>> element) throws Exception
element - the tuple who's key is used to position this CursorIOException - if there are failures to position the CursorExceptionpublic boolean isElementReused()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.