public class ApproximateCursor<V> extends AbstractIndexCursor<V>
Constructor and Description |
---|
ApproximateCursor(Store store,
ApproximateEvaluator<V> approximateEvaluator)
Creates a new instance of ApproximateCursor
|
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
public ApproximateCursor(Store store, ApproximateEvaluator<V> approximateEvaluator) throws Exception
store
- The Store we want to build a cursor onapproximateEvaluator
- The evaluatorException
- If the creation failedprotected 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, IOException
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
IOException
public void after(IndexEntry<V,String> element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
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
IOException
public void beforeFirst() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void afterLast() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean first() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean last() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean previous() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean next() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public IndexEntry<V,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException, IOException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void close()
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>>
public void close(Exception cause)
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>>
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-2014 The Apache Software Foundation. All Rights Reserved.