|
||||||||||
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.ServerEntryCursorAdaptor
public class ServerEntryCursorAdaptor
Adapts index cursors to return just ServerEntry objects.
Constructor Summary | |
---|---|
ServerEntryCursorAdaptor(Partition db,
IndexCursor<java.lang.Long,ServerEntry> indexCursor)
|
Method Summary | |
---|---|
void |
after(ServerEntry element)
Prepares this Cursor, so a subsequent call to Cursor#previous() with a true return value, will have positioned the Cursor on a dataset element equal to or less than the element argument but not greater. |
void |
afterLast()
Positions this Curser after the last element. |
boolean |
available()
Determines whether or not a call to get() will succeed. |
void |
before(ServerEntry element)
Prepares this Cursor, so a subsequent call to Cursor#next() with a true return value, will have positioned the Cursor on a dataset element equal to or less than the element argument but not greater. |
void |
beforeFirst()
Positions this Curser before the first element. |
void |
close()
Closes this Cursor and frees any resources it my have allocated. |
void |
close(java.lang.Exception e)
Closes this Cursor and frees any resources it my have allocated. |
boolean |
first()
Positions this Curser at the first element. |
ServerEntry |
get()
Gets the object at the current position. |
boolean |
isClosed()
Checks if this Curser is closed. |
boolean |
isElementReused()
Gets whether or not this Cursor will return the same element object instance on get() operations for any position of this Cursor. |
java.util.Iterator<ServerEntry> |
iterator()
|
boolean |
last()
Positions this Curser at the last element. |
boolean |
next()
Advances this Cursor to the next position. |
boolean |
previous()
Advances this Cursor to the previous position. |
void |
setClosureMonitor(ClosureMonitor monitor)
Sets a non-null closure monitor to associate with this Cursor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerEntryCursorAdaptor(Partition db, IndexCursor<java.lang.Long,ServerEntry> indexCursor)
Method Detail |
---|
public void after(ServerEntry element) throws java.lang.Exception
Cursor
after
in interface Cursor<ServerEntry>
element
- the element to be positioned after
java.lang.Exception
- if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic void afterLast() throws java.lang.Exception
Cursor
afterLast
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic boolean available()
Cursor
available
in interface Cursor<ServerEntry>
public void before(ServerEntry element) throws java.lang.Exception
Cursor
before
in interface Cursor<ServerEntry>
element
- the element to be positioned before
java.lang.Exception
- with problems accessing the underlying btree
java.lang.UnsupportedOperationException
- if this method is not supportedpublic void beforeFirst() throws java.lang.Exception
Cursor
beforeFirst
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic final void setClosureMonitor(ClosureMonitor monitor)
Cursor
setClosureMonitor
in interface Cursor<ServerEntry>
monitor
- the monitor to use for detecting Cursor close eventspublic void close() throws java.lang.Exception
Cursor
close
in interface Cursor<ServerEntry>
java.lang.Exception
- if for some reason this Cursor could not be closedpublic void close(java.lang.Exception e) throws java.lang.Exception
Cursor
close
in interface Cursor<ServerEntry>
e
- exception thrown when this Cursor is accessed after close
java.lang.Exception
- if for some reason this Cursor could not be closedpublic boolean first() throws java.lang.Exception
Cursor
first
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic ServerEntry get() throws java.lang.Exception
Cursor
get
in interface Cursor<ServerEntry>
java.lang.Exception
- if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closedpublic boolean isClosed() throws java.lang.Exception
Cursor
isClosed
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems determining the cursor's closed state
java.lang.UnsupportedOperationException
- if this method is not supportedpublic boolean isElementReused()
Cursor
isElementReused
in interface Cursor<ServerEntry>
public boolean last() throws java.lang.Exception
Cursor
last
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic boolean next() throws java.lang.Exception
Cursor
next
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems advancing to this Cursor to
the next position, or if this Cursor is closed
java.lang.UnsupportedOperationException
- if this method is not supportedpublic boolean previous() throws java.lang.Exception
Cursor
previous
in interface Cursor<ServerEntry>
java.lang.Exception
- if there are problems advancing to the next position
java.lang.UnsupportedOperationException
- if this method is not supportedpublic java.util.Iterator<ServerEntry> iterator()
iterator
in interface java.lang.Iterable<ServerEntry>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |