public class ESAuditBackend.ESCursorResult extends CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
end |
protected String |
scrollId |
batchSize, cursor, keepAliveSeconds, lastCallTimestamp| Constructor and Description |
|---|
ESCursorResult(org.elasticsearch.action.search.SearchResponse response,
int batchSize,
int keepAliveSeconds) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
CAUTION: if your cursor doesn't implement
Closeable, we just set the field to null |
boolean |
hasNext() |
org.elasticsearch.search.SearchHit |
next() |
protected void |
runNextScroll() |
getBatchSize, getCursor, timedOut, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic ESCursorResult(org.elasticsearch.action.search.SearchResponse response, int batchSize, int keepAliveSeconds)
public boolean hasNext()
hasNext in interface Iterator<org.elasticsearch.search.SearchHit>hasNext in class CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>public org.elasticsearch.search.SearchHit next()
next in interface Iterator<org.elasticsearch.search.SearchHit>next in class CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>protected void runNextScroll()
public void close()
CursorResultCloseable, we just set the field to nullclose in interface Closeableclose in interface AutoCloseableclose in class CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>Copyright © 2019 Nuxeo. All rights reserved.