public class SubstringCursor<ID> extends AbstractIndexCursor<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Constructor and Description |
---|
SubstringCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
SubstringEvaluator<ID> substringEvaluator) |
Modifier and Type | Method and Description |
---|---|
void |
after(IndexEntry<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
afterLast() |
void |
afterValue(ID id,
String 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<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) |
void |
beforeFirst() |
void |
beforeValue(ID id,
String 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<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> |
get() |
boolean |
isElementReused() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
checkNotClosed, close, isClosed, iterator, setClosureMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean available()
public void beforeValue(ID id, String value) throws Exception
IndexCursor
id
- the id for the entryvalue
- the value to advance just beforeException
- if there are faults performing this operationpublic void afterValue(ID id, String 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 before(IndexEntry<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exception
public void after(IndexEntry<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> element) throws Exception
Exception
public IndexEntry<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get() throws Exception
Exception
public boolean isElementReused()
public void close() throws Exception
close
in interface org.apache.directory.shared.ldap.cursor.Cursor<IndexEntry<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID>>
close
in class AbstractIndexCursor<String,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Exception
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.