public class EqualityCursor<V,ID> extends AbstractIndexCursor<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
| Constructor and Description |
|---|
EqualityCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
EqualityEvaluator<V,ID> equalityEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
afterLast() |
void |
afterValue(ID id,
V key)
An alternative to calling after(IndexEntry) which often may require
wrapping an id and value in a newly created IndexEntry object that may
be an unnecessary object creation.
|
boolean |
available() |
void |
before(IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
beforeFirst() |
void |
beforeValue(ID id,
V value)
An alternative to calling before(IndexEntry) which often may require
wrapping an id and value in a newly created IndexEntry object that may
be an unnecessary object creation.
|
void |
close() |
boolean |
first() |
IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> |
get() |
boolean |
isElementReused() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, close, isClosed, iterator, setClosureMonitorpublic boolean available()
public void beforeValue(ID id, V value) throws Exception
IndexCursorid - the id for the entryvalue - the value to advance just beforeException - if there are faults performing this operationpublic void before(IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exceptionpublic void afterValue(ID id, V key) throws Exception
IndexCursorid - the id for the entrykey - the value to advance just after the last valueException - if there are faults performing this operationpublic void after(IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exceptionpublic IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get() throws Exception
Exceptionpublic boolean isElementReused()
public void close()
throws Exception
close in interface org.apache.directory.shared.ldap.cursor.Cursor<IndexEntry<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID>>close in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.entry.ServerEntry,ID>ExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.