Class FixedBatchScrollSpliterator<T>
- java.lang.Object
-
- java.util.Spliterators.AbstractSpliterator<java.util.List<T>>
-
- fr.gouv.vitam.common.database.utils.FixedBatchScrollSpliterator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Spliterator<java.util.List<T>>
public class FixedBatchScrollSpliterator<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 FixedBatchScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<java.util.List<T>>> repository, int scrollTimeout, int limit, int batchSize)
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
-
FixedBatchScrollSpliterator
public FixedBatchScrollSpliterator(SelectMultiQuery query, java.util.function.Function<SelectMultiQuery,RequestResponse<java.util.List<T>>> repository, int scrollTimeout, int limit, int batchSize)
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)
-
-