Package org.nuxeo.ecm.core.scroll
Class StaticScroll
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.StaticScroll
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<List<String>>
,Scroll
public class StaticScroll extends Object implements Scroll
Returns a static result list of identifiers.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected int
currentPosition
protected int
nextPosition
protected List<List<String>>
partitions
protected StaticScrollRequest
request
-
Constructor Summary
Constructors Constructor Description StaticScroll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
void
init(ScrollRequest request, Map<String,String> options)
Initialization of the iterator.List<String>
next()
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 StaticScrollRequest request
-
partitions
protected List<List<String>> partitions
-
currentPosition
protected int currentPosition
-
nextPosition
protected int nextPosition
-
-
Constructor Detail
-
StaticScroll
public StaticScroll()
-
-