public class DupsContainerCursor<K,V> extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>>>
| Modifier and Type | Field and Description |
|---|---|
private jdbm.helper.TupleBrowser<K,V> |
browser
A browser over the JDBM Table
|
private java.lang.Boolean |
forwardDirection
TODO : do we need this flag ???
|
private static boolean |
IS_DEBUG
Speedup for logs
|
private jdbm.helper.Tuple<K,V> |
jdbmTuple
A container to pass to the underlying JDBM to get back a tuple
|
private static org.slf4j.Logger |
LOG_CURSOR
A dedicated log for cursors
|
private org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> |
returnedTuple |
private JdbmTable<K,V> |
table
The JDBM table we are building a cursor over
|
private boolean |
valueAvailable
Tells if we have a tuple to return
|
| 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(org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> element) |
void |
afterKey(K key) |
void |
afterLast() |
void |
afterValue(K key,
DupsContainer<V> value) |
boolean |
available() |
void |
before(org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> element)
Positions this Cursor before the key of the supplied tuple.
|
void |
beforeFirst() |
void |
beforeKey(K key) |
void |
beforeValue(K key,
DupsContainer<V> value) |
private void |
clearValue()
Clean the tuples we use to store the returned resut.
|
void |
close() |
void |
close(java.lang.Exception cause) |
boolean |
first() |
org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> |
get() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringprivate static final org.slf4j.Logger LOG_CURSOR
private static final boolean IS_DEBUG
private jdbm.helper.Tuple<K,V> jdbmTuple
private org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> returnedTuple
private boolean valueAvailable
private java.lang.Boolean forwardDirection
private void clearValue()
public boolean available()
public void beforeKey(K key) 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 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 beforeValue(K key, DupsContainer<V> value) throws java.lang.Exception
java.lang.Exceptionpublic void afterValue(K key, DupsContainer<V> value) throws java.lang.Exception
java.lang.Exceptionpublic void before(org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
element - the tuple who's key is used to position this Cursorjava.io.IOException - if there are failures to position the Cursororg.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,DupsContainer<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 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 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 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 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 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 org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>>>public void close(java.lang.Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,DupsContainer<V>>>