Class ScrollSpliterator<T>
- java.lang.Object
-
- java.util.Spliterators.AbstractSpliterator<T>
-
- fr.gouv.vitam.common.database.utils.ScrollSpliterator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Spliterator<T>
public class ScrollSpliterator<T> extends java.util.Spliterators.AbstractSpliterator<T>
ScrollSpliterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Constructor Summary
Constructors Constructor Description ScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<T>> repository, int scrollTimeout, int limit)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
estimateSize()
boolean
tryAdvance(java.util.function.Consumer<? super T> action)
-
-
-
Constructor Detail
-
ScrollSpliterator
public ScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<T>> repository, int scrollTimeout, int limit)
Constructor- Parameters:
query
- the select queryrepository
- the repositoryscrollTimeout
- scroll timeoutlimit
- the limit
-
-