public class SubtreeScopeCursor<ID> extends AbstractIndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Constructor and Description |
---|
SubtreeScopeCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
SubtreeScopeEvaluator<org.apache.directory.shared.ldap.entry.ServerEntry,ID> evaluator)
Creates a Cursor over entries satisfying subtree 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, setClosureMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SubtreeScopeCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db, SubtreeScopeEvaluator<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
IndexCursor
id
- the id for the entryvalue
- the value to advance just beforeException
- if there are faults performing this operationpublic void before(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exception
public void afterValue(ID id, ID value) throws Exception
IndexCursor
id
- the id for the entryvalue
- the value to advance just after the last valueException
- if there are faults performing this operationpublic void after(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exception
public IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get() throws Exception
Exception
public boolean isElementReused()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.