Class ArrayListScrollSpliterator<T>
- java.lang.Object
-
- java.util.Spliterators.AbstractSpliterator<java.util.List<T>>
-
- fr.gouv.vitam.common.database.utils.ArrayListScrollSpliterator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Spliterator<java.util.List<T>>
public class ArrayListScrollSpliterator<T> extends java.util.Spliterators.AbstractSpliterator<java.util.List<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 ArrayListScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<java.util.List<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 java.util.List<T>> action)
-
-
-
Constructor Detail
-
ArrayListScrollSpliterator
public ArrayListScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<java.util.List<T>>> repository, int scrollTimeout, int limit)
Constructor- Parameters:
query
- the select queryrepository
- the repositoryscrollTimeout
- scroll timeoutlimit
- the limit
-
-
Method Detail
-
tryAdvance
public boolean tryAdvance(java.util.function.Consumer<? super java.util.List<T>> action)
-
-