public class OneLevelScopeCursor<ID> extends AbstractIndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
| Constructor and Description |
|---|
OneLevelScopeCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
OneLevelScopeEvaluator<org.apache.directory.shared.ldap.entry.ServerEntry,ID> evaluator)
Creates a Cursor over entries satisfying one level scope criteria.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
afterLast() |
void |
afterValue(ID id,
ID value)
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<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
beforeFirst() |
void |
beforeValue(ID id,
ID 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.
|
boolean |
first() |
IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> |
get() |
boolean |
isElementReused() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, close, close, isClosed, iterator, setClosureMonitorpublic OneLevelScopeCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db, OneLevelScopeEvaluator<org.apache.directory.shared.ldap.entry.ServerEntry,ID> evaluator) throws Exception
db - the entry storeevaluator - an IndexEntry (candidate) evaluatorException - on db access failurespublic boolean available()
public void beforeValue(ID id, ID value) throws Exception
IndexCursorid - the id for the entryvalue - the value to advance just beforeException - if there are faults performing this operationpublic void afterValue(ID id, ID value) throws Exception
IndexCursorid - the id for the entryvalue - the value to advance just after the last valueException - if there are faults performing this operationpublic void before(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exceptionpublic void after(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exceptionpublic IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get() throws Exception
Exceptionpublic boolean isElementReused()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.