|
||||||||||
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,V>
org.apache.directory.server.core.partition.impl.btree.jdbm.KeyTupleAvlCursor<K,V>
public class KeyTupleAvlCursor<K,V>
Cursor over a set of values for the same key which are store in an in memory AvlTree. This Cursor is limited to the same key and it's tuples will always return the same key.
Constructor Summary | |
---|---|
KeyTupleAvlCursor(AvlTree<V> avlTree,
K key)
Creates a Cursor over the tuples of an AvlTree. |
Method Summary | |
---|---|
void |
after(Tuple<K,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,
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,V> element)
Positions this Cursor over the same keys before the value of the supplied element 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,
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,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 KeyTupleAvlCursor(AvlTree<V> avlTree, K key)
avlTree
- the AvlTree to build a Tuple returning Cursor overkey
- the constant key for which values are returnedMethod 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 operationpublic 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 operationpublic void beforeValue(K key, 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 operationpublic void afterValue(K key, 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 operationpublic void before(Tuple<K,V> element) throws java.lang.Exception
element
- the valueTuple who's value is used to position this Cursor
java.lang.Exception
- if there are failures to position the Cursorpublic void after(Tuple<K,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 supportedpublic 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 supportedpublic 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 supportedpublic 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 supportedpublic 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 supportedpublic 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 supportedpublic 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 supportedpublic Tuple<K,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 |