public class AvlTableDupsCursor<K,V>
extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>>
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.cursor.Cursor<V> |
dupsCursor
A Cursor over a set of value objects for the current key held in the
containerTuple.
|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG |
private static org.slf4j.Logger |
LOG_CURSOR
A dedicated log for cursors
|
private org.apache.directory.api.ldap.model.cursor.Tuple<K,V> |
returnedTuple
The Tuple that is used to return values via the get() method.
|
private AvlTable<K,V> |
table
The AVL backed table this Cursor traverses over.
|
private boolean |
valueAvailable
Whether or not a value is available when get() is called.
|
private AvlSingletonOrOrderedSetCursor<K,V> |
wrappedCursor
The underlying wrapped cursor which returns Tuples whose values are
either V objects or AvlTree objects.
|
private org.apache.directory.api.ldap.model.cursor.Tuple<K,SingletonOrOrderedSet<V>> |
wrappedTuple
The current Tuple returned from the wrapped cursor.
|
| Constructor and Description |
|---|
AvlTableDupsCursor(AvlTable<K,V> table)
Creates a new instance of AvlTableDupsCursor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.apache.directory.api.ldap.model.cursor.Tuple<K,V> element) |
void |
afterKey(K key) |
void |
afterLast() |
void |
afterValue(K key,
V value) |
boolean |
available() |
void |
before(org.apache.directory.api.ldap.model.cursor.Tuple<K,V> element) |
void |
beforeFirst() |
void |
beforeKey(K key) |
void |
beforeValue(K key,
V value) |
private void |
clearValue()
Clears the returned Tuple and makes sure valueAvailable returns false.
|
void |
close() |
void |
close(java.lang.Exception reason) |
boolean |
first() |
org.apache.directory.api.ldap.model.cursor.Tuple<K,V> |
get() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringprivate static final org.slf4j.Logger LOG
private static final org.slf4j.Logger LOG_CURSOR
private static final boolean IS_DEBUG
private final AvlSingletonOrOrderedSetCursor<K,V> wrappedCursor
private org.apache.directory.api.ldap.model.cursor.Cursor<V> dupsCursor
private final org.apache.directory.api.ldap.model.cursor.Tuple<K,SingletonOrOrderedSet<V>> wrappedTuple
private final org.apache.directory.api.ldap.model.cursor.Tuple<K,V> returnedTuple
private boolean valueAvailable
public boolean available()
public void beforeKey(K key) throws java.lang.Exception
java.lang.Exceptionpublic void beforeValue(K key, V value) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterKey(K key) throws java.lang.Exception
java.lang.Exceptionpublic void afterValue(K key, V value) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void after(org.apache.directory.api.ldap.model.cursor.Tuple<K,V> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void before(org.apache.directory.api.ldap.model.cursor.Tuple<K,V> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.cursor.Tuple<K,V> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
public void close(java.lang.Exception reason)
private void clearValue()