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 Boolean
hasNextResult
protected NuxeoLoginContext
loginContext
protected ScrollResult<String>
repoScroller
protected DocumentScrollRequest
request
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description RepositoryScroll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected boolean
fetch()
boolean
hasNext()
void
init(ScrollRequest request, Map<String,String> options)
Initialization of the iterator.protected void
login()
List<String>
next()
protected void
openSession()
String
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
-
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:Scroll
Initialization of the iterator.
-
login
protected void login()
-
openSession
protected void openSession()
-
fetch
protected boolean fetch()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceScroll
-
-