|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.xdbm.AbstractTupleCursor<K,DupsContainer<V>>
org.apache.directory.server.core.partition.impl.btree.jdbm.DupsContainerCursor<K,V>
public class DupsContainerCursor<K,V>
A cursor for browsing tables with duplicates which returns the container for values rather than just the value.
| Constructor Summary | |
|---|---|
DupsContainerCursor(JdbmTable<K,V> table)
Creates a Cursor over the tuples of a JDBM table. |
|
| Method Summary | |
|---|---|
void |
after(Tuple<K,DupsContainer<V>> element)
Prepares this Cursor, so a subsequent call to Cursor#previous() with a true return value, will have positioned the Cursor on a dataset element equal to or less than the element argument but not greater. |
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()
Positions this Curser after the last element. |
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()
Determines whether or not a call to get() will succeed. |
void |
before(Tuple<K,DupsContainer<V>> element)
Positions this Cursor before the key of the supplied tuple. |
void |
beforeFirst()
Positions this Curser before the first element. |
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()
Positions this Curser at the first element. |
Tuple<K,DupsContainer<V>> |
get()
Gets the object at the current position. |
boolean |
isElementReused()
Gets whether or not this Cursor will return the same element object instance on get() operations for any position of this Cursor. |
boolean |
last()
Positions this Curser at the last element. |
boolean |
next()
Advances this Cursor to the next position. |
boolean |
previous()
Advances this Cursor to the previous position. |
| Methods inherited from class org.apache.directory.server.xdbm.AbstractTupleCursor |
|---|
checkNotClosed, close, close, isClosed, iterator, setClosureMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DupsContainerCursor(JdbmTable<K,V> table)
throws java.io.IOException
table - the JDBM Table to build a Cursor over
java.io.IOException - of there are problems accessing the BTree| Method Detail |
|---|
public boolean available()
Cursor
public void beforeKey(K key)
throws java.lang.Exception
TupleCursor
key - the key to advance just before
java.lang.Exception - if there are faults peforming this operation
public void afterKey(K key)
throws java.lang.Exception
TupleCursor
key - the key to advance just after the last value
java.lang.Exception - if there are faults peforming this operation
public void beforeValue(K key,
DupsContainer<V> value)
throws java.lang.Exception
TupleCursor
key - the key of the value to advance just beforevalue - the value to advance just before
java.lang.UnsupportedOperationException - if duplicate keys not supporrted
java.lang.Exception - if there are faults peforming this operation
public void afterValue(K key,
DupsContainer<V> value)
throws java.lang.Exception
TupleCursor
key - the key of the value to advance just aftervalue - the value to advance just after
java.lang.UnsupportedOperationException - if duplicate keys not supporrted
java.lang.Exception - if there are faults peforming this operation
public void before(Tuple<K,DupsContainer<V>> element)
throws java.lang.Exception
element - the tuple who's key is used to position this Cursor
java.io.IOException - if there are failures to position the Cursor
java.lang.Exception - with problems accessing the underlying btree
java.lang.UnsupportedOperationException - if this method is not supported
public void after(Tuple<K,DupsContainer<V>> element)
throws java.lang.Exception
Cursor
element - the element to be positioned after
java.lang.Exception - if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public void beforeFirst()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public void afterLast()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean first()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean last()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean previous()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems advancing to the next position
java.lang.UnsupportedOperationException - if this method is not supported
public boolean next()
throws java.lang.Exception
Cursor
java.lang.Exception - if there are problems advancing to this Cursor to
the next position, or if this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public Tuple<K,DupsContainer<V>> get()
throws java.lang.Exception
Cursor
java.lang.Exception - if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closedpublic boolean isElementReused()
Cursor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||