Package org.nuxeo.elasticsearch.scroll
Class ElasticSearchScroll
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.RepositoryScroll
-
- org.nuxeo.elasticsearch.scroll.ElasticSearchScroll
-
- All Implemented Interfaces:
AutoCloseable,Iterator<List<String>>,Scroll
public class ElasticSearchScroll extends RepositoryScroll
- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected EsScrollResultesScrollprotected static longMAX_ES_KEEP_ALIVE_SECONDS-
Fields inherited from class org.nuxeo.ecm.core.scroll.RepositoryScroll
hasNextResult, loginContext, repoScroller, request, session
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchScroll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected booleanfetch()protected longgetKeepAlive()booleanhasNext()List<String>next()-
Methods inherited from class org.nuxeo.ecm.core.scroll.RepositoryScroll
init, login, openSession, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
MAX_ES_KEEP_ALIVE_SECONDS
protected static final long MAX_ES_KEEP_ALIVE_SECONDS
- See Also:
- Constant Field Values
-
esScroll
protected EsScrollResult esScroll
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
fetch
protected boolean fetch()
- Overrides:
fetchin classRepositoryScroll
-
getKeepAlive
protected long getKeepAlive()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceScroll- Overrides:
closein classRepositoryScroll
-
-