public class EqualityCursor<V> extends AbstractIndexCursor<V>
partitionTxn
Constructor and Description |
---|
EqualityCursor(PartitionTxn partitionTxn,
Store store,
EqualityEvaluator<V> equalityEvaluator)
Creates a new instance of an EqualityCursor
|
Modifier and Type | Method and Description |
---|---|
void |
after(IndexEntry<V,String> element) |
void |
afterLast() |
boolean |
available() |
void |
before(IndexEntry<V,String> element) |
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 |
last() |
boolean |
next() |
boolean |
previous() |
String |
toString() |
String |
toString(String tabs) |
setAvailable
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public EqualityCursor(PartitionTxn partitionTxn, Store store, EqualityEvaluator<V> equalityEvaluator) throws org.apache.directory.api.ldap.model.exception.LdapException, IndexNotFoundException
partitionTxn
- The transaction to usestore
- The storeequalityEvaluator
- The EqualityEvaluatororg.apache.directory.api.ldap.model.exception.LdapException
- If the creation failedIndexNotFoundException
- If the index was not foundprotected 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 before(IndexEntry<V,String> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
before
in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>
before
in class AbstractIndexCursor<V>
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public void after(IndexEntry<V,String> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
after
in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>
after
in class AbstractIndexCursor<V>
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
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 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
public String toString(String tabs)
toString
in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>
toString
in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>
Object.toString()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.