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 boolean
end
protected String
scrollId
-
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 void
close()
CAUTION: if your cursor doesn't implementCloseable
, we just set the field to nullboolean
hasNext()
org.elasticsearch.search.SearchHit
next()
protected void
runNextScroll()
-
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:
hasNext
in interfaceIterator<org.elasticsearch.search.SearchHit>
- Overrides:
hasNext
in classCursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
next
public org.elasticsearch.search.SearchHit next()
- Specified by:
next
in interfaceIterator<org.elasticsearch.search.SearchHit>
- Overrides:
next
in classCursorResult<Iterator<org.elasticsearch.search.SearchHit>,org.elasticsearch.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.elasticsearch.search.SearchHit>,org.elasticsearch.search.SearchHit>
-
-