Class ArrayListScrollSpliterator<T>
java.lang.Object
java.util.Spliterators.AbstractSpliterator<List<T>>
fr.gouv.vitam.common.database.utils.ArrayListScrollSpliterator<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Spliterator<List<T>>
ScrollSpliterator
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,
T_CONS extends Object, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorDescriptionArrayListScrollSpliterator
(SelectMultiQuery query, Function<SelectMultiQuery, RequestResponse<List<T>>> repository, int scrollTimeout, int limit) Constructor -
Method Summary
Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, trySplit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Constructor Details
-
ArrayListScrollSpliterator
public ArrayListScrollSpliterator(SelectMultiQuery query, Function<SelectMultiQuery, RequestResponse<List<T>>> repository, int scrollTimeout, int limit) Constructor- Parameters:
query
- the select queryrepository
- the repositoryscrollTimeout
- scroll timeoutlimit
- the limit
-
-
Method Details
-
tryAdvance
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<T>
- Overrides:
estimateSize
in classSpliterators.AbstractSpliterator<List<T>>
-