Class FlexibleSearchResultSpliterator
java.lang.Object
java.util.Spliterators.AbstractSpliterator<SimpleBatchCreationData>
de.hybris.platform.processing.distributed.simple.data.split.FlexibleSearchResultSpliterator
- All Implemented Interfaces:
Spliterator<SimpleBatchCreationData>
public class FlexibleSearchResultSpliterator
extends Spliterators.AbstractSpliterator<SimpleBatchCreationData>
-
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
ConstructorsConstructorDescriptionFlexibleSearchResultSpliterator(FlexibleSearchQuery fQuery, QueryBasedCreationData.QueryHook beforeQueryHook, int batchSize, boolean useDatabasePaging) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<?>protected voidbooleantryAdvance(Consumer<? super SimpleBatchCreationData> action) protected booleantryFromDatabase(Consumer<? super SimpleBatchCreationData> action) protected booleantryFromList(Consumer<? super SimpleBatchCreationData> action) Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Constructor Details
-
FlexibleSearchResultSpliterator
public FlexibleSearchResultSpliterator(FlexibleSearchQuery fQuery, QueryBasedCreationData.QueryHook beforeQueryHook, int batchSize, boolean useDatabasePaging)
-
-
Method Details
-
tryAdvance
-
tryFromDatabase
-
tryFromList
-
getNextBatch
-
runBeforeQueryHook
protected void runBeforeQueryHook()
-