public class EntryCursorImpl extends AbstractCursor<Entry> implements EntryCursor
Constructor and Description |
---|
EntryCursorImpl(SearchCursor searchCursor)
Instantiates a new search cursor, embedding a SearchCursor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(Entry element)
This operation is not supported in SearchCursor.
|
void |
afterLast()
This operation is not supported in SearchCursor.
|
boolean |
available()
Determines whether or not a call to get() will succeed.
|
void |
before(Entry element)
This operation is not supported in SearchCursor.
|
void |
beforeFirst()
This operation is not supported in SearchCursor.
|
void |
close()
Closes this Cursor and frees any resources it my have allocated.
|
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated.
|
boolean |
first()
This operation is not supported in SearchCursor.
|
Entry |
get()
Gets the object at the current position.
|
int |
getMessageId() |
SearchResultDone |
getSearchResultDone()
gives the SearchResultDone message received at the end of search results
|
boolean |
last()
This operation is not supported in SearchCursor.
|
boolean |
next()
Advances this Cursor to the next position.
|
boolean |
previous()
This operation is not supported in SearchCursor.
|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor
public EntryCursorImpl(SearchCursor searchCursor)
searchCursor
- the embedded SearchResponse cursorpublic boolean next() throws Exception
public Entry get() throws Exception
public SearchResultDone getSearchResultDone()
getSearchResultDone
in interface EntryCursor
public boolean available()
public void close() throws Exception
public void close(Exception cause) throws Exception
public void after(Entry element) throws Exception
public void afterLast() throws Exception
public void before(Entry element) throws Exception
public void beforeFirst() throws Exception
beforeFirst
in interface Cursor<Entry>
Exception
- if there are problems positioning this cursor or if
this Cursor is closedpublic boolean first() throws Exception
public boolean last() throws Exception
public boolean previous() throws Exception
public int getMessageId()
getMessageId
in interface EntryCursor
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.