|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>
org.apache.directory.server.xdbm.AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID>
org.apache.directory.server.xdbm.search.impl.EqualityCursor<V,ID>
public class EqualityCursor<V,ID extends Comparable<ID>>
A Cursor over entry candidates matching an equality assertion filter. This Cursor operates in two modes. The first is when an index exists for the attribute the equality assertion is built on. The second is when the user index for the assertion attribute does not exist. Different Cursors are used in each of these cases where the other remains null.
| Constructor Summary | |
|---|---|
EqualityCursor(Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db,
EqualityEvaluator<V,ID> equalityEvaluator)
Creates a new instance of an EqualityCursor |
|
| Method Summary | |
|---|---|
void |
after(IndexEntry<V,ID> element)
|
void |
afterLast()
|
void |
afterValue(ID id,
V 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<V,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,ID> |
get()
|
protected String |
getUnsupportedMessage()
Gets the message to return for operations that are not supported |
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
| Methods inherited from class org.apache.directory.server.xdbm.AbstractIndexCursor |
|---|
isAfterLast, isBeforeFirst, isFirst, isLast, iterator, setAvailable |
| Methods inherited from class org.apache.directory.shared.ldap.model.cursor.AbstractCursor |
|---|
checkNotClosed, close, isClosed, setClosureMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.cursor.Cursor |
|---|
close, isClosed, setClosureMonitor |
| Constructor Detail |
|---|
public EqualityCursor(Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db,
EqualityEvaluator<V,ID> equalityEvaluator)
throws Exception
db - The storeequalityEvaluator - The EqualityEvaluator
Exception - If the creation failed| Method Detail |
|---|
protected String getUnsupportedMessage()
getUnsupportedMessage in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>public boolean available()
available in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID extends Comparable<ID>>>available in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>
public void beforeValue(ID id,
V value)
throws Exception
beforeValue in interface IndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>beforeValue in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>id - the id for the entryvalue - the value to advance just before
Exception - if there are faults performing this operation
public void before(IndexEntry<V,ID> element)
throws Exception
before in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID extends Comparable<ID>>>before in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>Exception
public void afterValue(ID id,
V value)
throws Exception
afterValue in interface IndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>afterValue in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>id - the id for the entryvalue - the value to advance just after the last value
Exception - if there are faults performing this operation
public void after(IndexEntry<V,ID> element)
throws Exception
after in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID extends Comparable<ID>>>after in class AbstractIndexCursor<V,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>Exception
public void beforeFirst()
throws Exception
Exception
public void afterLast()
throws Exception
Exception
public boolean first()
throws Exception
Exception
public boolean last()
throws Exception
Exception
public boolean previous()
throws Exception
Exception
public boolean next()
throws Exception
Exception
public IndexEntry<V,ID> get()
throws Exception
Exception
public void close()
throws Exception
close in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID extends Comparable<ID>>>close in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID extends Comparable<ID>>>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||