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, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public 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()
CursorResult
Closeable
, we just set the field to nullclose
in interface Closeable
close
in interface AutoCloseable
close
in class CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
Copyright © 2018 Nuxeo. All rights reserved.