|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.IndexCursorAdaptor<K,O,ID>
public class IndexCursorAdaptor<K,O,ID>
A Cursor which adapts an underlying Tuple based Cursor to one which returns IndexEntry objects rather than tuples.
| Constructor Summary | |
|---|---|
IndexCursorAdaptor(org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple> wrappedCursor,
boolean forwardIndex)
Creates an IndexCursorAdaptor which wraps and adapts a Cursor from a table to one which returns an IndexEntry. |
|
| Method Summary | |
|---|---|
void |
after(IndexEntry<K,ID> element)
|
void |
afterLast()
|
void |
afterValue(ID id,
K key)
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<K,ID> element)
|
void |
beforeFirst()
|
void |
beforeValue(ID id,
K key)
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()
|
void |
close(Exception reason)
|
boolean |
first()
|
IndexEntry<K,ID> |
get()
|
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isClosed()
|
boolean |
isFirst()
|
boolean |
isLast()
|
Iterator<IndexEntry<K,ID>> |
iterator()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
void |
setClosureMonitor(org.apache.directory.shared.ldap.model.cursor.ClosureMonitor monitor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexCursorAdaptor(org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple> wrappedCursor,
boolean forwardIndex)
wrappedCursor - the Cursor being adaptedforwardIndex - true for a cursor over a forward index, false for
one over a reverse index| Method Detail |
|---|
public boolean available()
available in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>
public void beforeValue(ID id,
K key)
throws Exception
IndexCursor
beforeValue in interface IndexCursor<K,O,ID>id - the id for the entrykey - the value to advance just before
Exception - if there are faults performing this operation
public void afterValue(ID id,
K key)
throws Exception
IndexCursor
afterValue in interface IndexCursor<K,O,ID>id - the id for the entrykey - the value to advance just after the last value
Exception - if there are faults performing this operation
public void before(IndexEntry<K,ID> element)
throws Exception
before in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public void after(IndexEntry<K,ID> element)
throws Exception
after in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public void beforeFirst()
throws Exception
beforeFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public void afterLast()
throws Exception
afterLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean first()
throws Exception
first in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean last()
throws Exception
last in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean isClosed()
throws Exception
isClosed in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean previous()
throws Exception
previous in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean next()
throws Exception
next in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public IndexEntry<K,ID> get()
throws Exception
get in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exceptionpublic final void setClosureMonitor(org.apache.directory.shared.ldap.model.cursor.ClosureMonitor monitor)
setClosureMonitor in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>
public void close()
throws Exception
close in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public void close(Exception reason)
throws Exception
close in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exceptionpublic Iterator<IndexEntry<K,ID>> iterator()
iterator in interface Iterable<IndexEntry<K,ID>>
public boolean isAfterLast()
throws Exception
isAfterLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean isBeforeFirst()
throws Exception
isBeforeFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean isFirst()
throws Exception
isFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
public boolean isLast()
throws Exception
isLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<IndexEntry<K,ID>>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||