public class SingletonIndexCursor<V> extends AbstractIndexCursor<V>
partitionTxn, UNSUPPORTED_MSG| Constructor and Description |
|---|
SingletonIndexCursor(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn,
IndexEntry<V,String> singleton) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast() |
boolean |
available() |
void |
beforeFirst() |
void |
close() |
void |
close(Exception cause) |
boolean |
first() |
IndexEntry<V,String> |
get() |
protected String |
getUnsupportedMessage()
Gets the message to return for operations that are not supported
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
after, before, setAvailablecheckNotClosed, isClosed, iterator, setClosureMonitor, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SingletonIndexCursor(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn, IndexEntry<V,String> singleton)
protected String getUnsupportedMessage()
getUnsupportedMessage in class AbstractIndexCursor<V>public boolean available()
available in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>available in class AbstractIndexCursor<V>public void beforeFirst() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean first() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean last() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean isFirst()
isFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isFirst in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isLast()
isLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isLast in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isAfterLast()
isAfterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isAfterLast in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isBeforeFirst()
isBeforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isBeforeFirst in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean previous() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>previous in class AbstractIndexCursor<V>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
next in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>next in class AbstractIndexCursor<V>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic IndexEntry<V,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>IOExceptionpublic void close(Exception cause) throws IOException
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>IOExceptionCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.