Package org.nuxeo.ecm.core.scroll
Class RepositoryScroll
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.RepositoryScroll
-
- All Implemented Interfaces:
AutoCloseable,Iterator<List<String>>,Scroll
- Direct Known Subclasses:
ElasticSearchScroll
public class RepositoryScroll extends Object implements Scroll
Scrolls document identifiers using the repository search.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanhasNextResultprotected NuxeoLoginContextloginContextprotected ScrollResult<String>repoScrollerprotected DocumentScrollRequestrequestprotected CoreSessionsession
-
Constructor Summary
Constructors Constructor Description RepositoryScroll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected booleanfetch()booleanhasNext()voidinit(ScrollRequest request, Map<String,String> options)Initialization of the iterator.protected voidlogin()List<String>next()protected voidopenSession()StringtoString()-
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
-
request
protected DocumentScrollRequest request
-
loginContext
protected NuxeoLoginContext loginContext
-
session
protected CoreSession session
-
repoScroller
protected ScrollResult<String> repoScroller
-
hasNextResult
protected Boolean hasNextResult
-
-
Method Detail
-
init
public void init(ScrollRequest request, Map<String,String> options)
Description copied from interface:ScrollInitialization of the iterator.
-
login
protected void login()
-
openSession
protected void openSession()
-
fetch
protected boolean fetch()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceScroll
-
-