Package org.nuxeo.elasticsearch.audit
Class ESAuditBackend.ESCursorResult
java.lang.Object
org.nuxeo.ecm.core.api.CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
org.nuxeo.elasticsearch.audit.ESAuditBackend.ESCursorResult
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<org.opensearch.search.SearchHit>
- Enclosing class:
- ESAuditBackend
public class ESAuditBackend.ESCursorResult
extends CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.api.CursorResult
batchSize, cursor, keepAliveSeconds, lastCallTimestamp
-
Constructor Summary
ConstructorDescriptionESCursorResult
(org.opensearch.action.search.SearchResponse response, int batchSize, int keepAliveSeconds) -
Method Summary
Methods inherited from class org.nuxeo.ecm.core.api.CursorResult
getBatchSize, getCursor, timedOut, touch
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
scrollId
-
end
protected boolean end
-
-
Constructor Details
-
ESCursorResult
public ESCursorResult(org.opensearch.action.search.SearchResponse response, int batchSize, int keepAliveSeconds)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<org.opensearch.search.SearchHit>
- Overrides:
hasNext
in classCursorResult<Iterator<org.opensearch.search.SearchHit>,
org.opensearch.search.SearchHit>
-
next
public org.opensearch.search.SearchHit next()- Specified by:
next
in interfaceIterator<org.opensearch.search.SearchHit>
- Overrides:
next
in classCursorResult<Iterator<org.opensearch.search.SearchHit>,
org.opensearch.search.SearchHit>
-
runNextScroll
protected void runNextScroll() -
close
public void close()Description copied from class:CursorResult
CAUTION: if your cursor doesn't implementCloseable
, we just set the field to null- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classCursorResult<Iterator<org.opensearch.search.SearchHit>,
org.opensearch.search.SearchHit>
-