|
||||||||||
| 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,Entry,ID>
public abstract class AbstractIndexCursor<V,Entry,ID>
An abstract TupleCursor.
| Field Summary | |
|---|---|
protected static String |
UNSUPPORTED_MSG
The message used for unsupported operations |
| Constructor Summary | |
|---|---|
AbstractIndexCursor()
|
|
| Method Summary | |
|---|---|
void |
after(IndexEntry<V,ID> element)
|
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 |
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. |
protected abstract String |
getUnsupportedMessage()
Gets the message to return for operations that are not supported |
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isFirst()
|
boolean |
isLast()
|
Iterator<IndexEntry<V,ID>> |
iterator()
|
protected boolean |
setAvailable(boolean available)
|
| Methods inherited from class org.apache.directory.shared.ldap.model.cursor.AbstractCursor |
|---|
checkNotClosed, close, 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 |
|---|
afterLast, beforeFirst, close, close, first, get, isClosed, last, next, previous, setClosureMonitor |
| Field Detail |
|---|
protected static final String UNSUPPORTED_MSG
| Constructor Detail |
|---|
public AbstractIndexCursor()
| Method Detail |
|---|
public boolean available()
available in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>protected abstract String getUnsupportedMessage()
public void after(IndexEntry<V,ID> element)
throws Exception
after in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>Exception
public void before(IndexEntry<V,ID> element)
throws Exception
before in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>Exception
public void afterValue(ID id,
V value)
throws Exception
afterValue in interface IndexCursor<V,Entry,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 beforeValue(ID id,
V value)
throws Exception
beforeValue in interface IndexCursor<V,Entry,ID>id - the id for the entryvalue - the value to advance just before
Exception - if there are faults performing this operationprotected boolean setAvailable(boolean available)
public Iterator<IndexEntry<V,ID>> iterator()
iterator in interface Iterable<IndexEntry<V,ID>>iterator in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>
public boolean isAfterLast()
throws Exception
isAfterLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>isAfterLast in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>Exception
public boolean isBeforeFirst()
throws Exception
isBeforeFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>isBeforeFirst in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>Exception
public boolean isFirst()
throws Exception
isFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>isFirst in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>Exception
public boolean isLast()
throws Exception
isLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<V,ID>>isLast in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<IndexEntry<V,ID>>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||