public class SingletonIndexCursor<V> extends AbstractIndexCursor<V>
partitionTxn, UNSUPPORTED_MSG
Constructor and Description |
---|
SingletonIndexCursor(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, setAvailable
checkNotClosed, isClosed, iterator, setClosureMonitor, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SingletonIndexCursor(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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public IndexEntry<V,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>
IOException
public 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>>
IOException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.