public class KeyTupleBTreeCursor<K,V> extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>>
| Constructor and Description |
|---|
KeyTupleBTreeCursor(jdbm.btree.BTree btree,
K key,
Comparator<V> comparator)
Creates a Cursor over the tuples of a JDBM BTree.
|
| 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)
Positions this Cursor over the same keys before the value of the
supplied valueTuple.
|
void |
beforeFirst() |
void |
beforeKey(K key) |
void |
beforeValue(K key,
V value) |
void |
close() |
void |
close(Exception cause) |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic KeyTupleBTreeCursor(jdbm.btree.BTree btree, K key, Comparator<V> comparator) throws IOException
btree - the JDBM BTree to build a Cursor overkey - the constant key for which values are returnedcomparator - the Comparator used to determine key orderingIOException - of there are problems accessing the BTreepublic boolean available()
public void beforeValue(K key, V value) throws Exception
Exceptionpublic void afterValue(K key, V value) throws org.apache.directory.api.ldap.model.cursor.CursorException
org.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
element - the valueTuple who's value is used to position this Cursororg.apache.directory.api.ldap.model.exception.LdapException - if there are failures to position the Cursororg.apache.directory.api.ldap.model.cursor.CursorException - if there are failures to position the Cursorpublic void after(org.apache.directory.api.ldap.model.cursor.Tuple<K,V> element) throws org.apache.directory.api.ldap.model.cursor.CursorException
org.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,V> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>>IOExceptionpublic void close(Exception cause) throws IOException
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>>IOExceptionCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.