Package akka.stream.impl
Class MutableReducerState<T,R>
- java.lang.Object
-
- akka.stream.impl.MutableReducerState<T,R>
-
- All Implemented Interfaces:
ReducerState<T,R>
public final class MutableReducerState<T,R> extends java.lang.Object implements ReducerState<T,R>
INTERNAL APIHelper class to be able to express reduce as a fold for parallel collector
-
-
Constructor Summary
Constructors Constructor Description MutableReducerState(java.util.stream.Collector<T,java.lang.Object,R> collector, java.util.function.BinaryOperator<java.lang.Object> combiner, java.lang.Object reduced)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Collector<T,java.lang.Object,R>
collector()
java.util.function.BinaryOperator<java.lang.Object>
combiner()
R
finish()
java.lang.Object
reduced()
void
reduced_$eq(java.lang.Object x$1)
ReducerState<T,R>
update(java.lang.Object batch)
-
-
-
Method Detail
-
combiner
public java.util.function.BinaryOperator<java.lang.Object> combiner()
-
finish
public R finish()
- Specified by:
finish
in interfaceReducerState<T,R>
-
reduced
public java.lang.Object reduced()
-
reduced_$eq
public void reduced_$eq(java.lang.Object x$1)
-
update
public ReducerState<T,R> update(java.lang.Object batch)
- Specified by:
update
in interfaceReducerState<T,R>
-
-