Class FirstReducerState<T,​R>

  • All Implemented Interfaces:
    ReducerState<T,​R>

    public final class FirstReducerState<T,​R>
    extends java.lang.Object
    implements ReducerState<T,​R>
    INTERNAL API

    Helper class to be able to express reduce as a fold for parallel collector

    • Constructor Summary

      Constructors 
      Constructor Description
      FirstReducerState​(scala.Function0<java.util.stream.Collector<T,​java.lang.Object,​R>> collectorFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R finish()  
      ReducerState<T,​R> update​(java.lang.Object batch)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FirstReducerState

        public FirstReducerState​(scala.Function0<java.util.stream.Collector<T,​java.lang.Object,​R>> collectorFactory)