Package org.nuxeo.elasticsearch.audit
Class ESAuditBackend.ESCursorResult
- java.lang.Object
-
- org.nuxeo.ecm.core.api.CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
- org.nuxeo.elasticsearch.audit.ESAuditBackend.ESCursorResult
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<org.elasticsearch.search.SearchHit>
- Enclosing class:
- ESAuditBackend
public class ESAuditBackend.ESCursorResult extends CursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanendprotected StringscrollId-
Fields inherited from class org.nuxeo.ecm.core.api.CursorResult
batchSize, cursor, keepAliveSeconds, lastCallTimestamp
-
-
Constructor Summary
Constructors Constructor Description ESCursorResult(org.elasticsearch.action.search.SearchResponse response, int batchSize, int keepAliveSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()CAUTION: if your cursor doesn't implementCloseable, we just set the field to nullbooleanhasNext()org.elasticsearch.search.SearchHitnext()protected voidrunNextScroll()-
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 Detail
-
scrollId
protected final String scrollId
-
end
protected boolean end
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<org.elasticsearch.search.SearchHit>- Overrides:
hasNextin classCursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
next
public org.elasticsearch.search.SearchHit next()
- Specified by:
nextin interfaceIterator<org.elasticsearch.search.SearchHit>- Overrides:
nextin classCursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
runNextScroll
protected void runNextScroll()
-
close
public void close()
Description copied from class:CursorResultCAUTION: if your cursor doesn't implementCloseable, we just set the field to null- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
-