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

      • ScrollSpliterator

        public ScrollSpliterator​(SelectMultiQuery query,
                                 java.util.function.Function<SelectMultiQuery,​RequestResponse<T>> repository,
                                 int scrollTimeout,
                                 int limit)
        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 T> action)
      • estimateSize

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