Class 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>>
    • Field Summary

      • Fields inherited from interface java.util.Spliterator

        CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
    • 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)  
      • 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 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 query
        repository - the repository
        scrollTimeout - scroll timeout
        limit - the limit
    • Method Detail

      • tryAdvance

        public boolean tryAdvance​(java.util.function.Consumer<? super java.util.List<T>> action)
      • estimateSize

        public long estimateSize()
        Specified by:
        estimateSize in interface java.util.Spliterator<T>
        Overrides:
        estimateSize in class java.util.Spliterators.AbstractSpliterator<java.util.List<T>>