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 EsScrollResult
esScroll
protected static long
MAX_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 void
close()
protected boolean
fetch()
protected long
getKeepAlive()
boolean
hasNext()
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:
fetch
in classRepositoryScroll
-
getKeepAlive
protected long getKeepAlive()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceScroll
- Overrides:
close
in classRepositoryScroll
-
-