|
||||||||||
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.KeyTupleBTreeCursor<K,V>
public class KeyTupleBTreeCursor<K,V>
Cursor over a set of values for the same key which are store in another BTree. This Cursor is limited to the same key and it's tuples will always return the same key.
Constructor Summary | |
---|---|
KeyTupleBTreeCursor(BTree btree,
K key,
java.util.Comparator<V> comparator)
Creates a Cursor over the tuples of a JDBM BTree. |
Method Summary | |
---|---|
void |
after(Tuple<K,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,
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,V> element)
Positions this Cursor over the same keys before the value of the supplied valueTuple. |
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,
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,V> |
get()
|
boolean |
isElementReused()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
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 KeyTupleBTreeCursor(BTree btree, K key, java.util.Comparator<V> comparator) throws java.lang.Exception
btree
- the JDBM BTree to build a Cursor overkey
- the constant key for which values are returnedcomparator
- the Comparator used to determine key ordering
java.lang.Exception
- of there are problems accessing the BTreeMethod Detail |
---|
public boolean available()
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
java.lang.Exception
public void beforeFirst() throws java.lang.Exception
java.lang.Exception
public void afterLast() throws java.lang.Exception
java.lang.Exception
public boolean first() throws java.lang.Exception
java.lang.Exception
public boolean last() throws java.lang.Exception
java.lang.Exception
public boolean previous() throws java.lang.Exception
java.lang.Exception
public boolean next() throws java.lang.Exception
java.lang.Exception
public Tuple<K,V> get() throws java.lang.Exception
java.lang.Exception
public boolean isElementReused()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |