public final class AdditionAggregateFunction extends Object implements VortexAggregateFunction<Integer>
Constructor and Description |
---|
AdditionAggregateFunction() |
public AdditionAggregateFunction()
public Integer call(List<Integer> taskletOutputs) throws VortexAggregateException
VortexAggregateFunction
call
in interface VortexAggregateFunction<Integer>
taskletOutputs
- the list of outputs from Tasklets on a Worker.VortexAggregateException
public Codec<Integer> getOutputCodec()
VortexAggregateFunction
VoidCodec
can be used if the aggregation output is
empty, and SerializableCodec
can be used for (Serializable
aggregation output.
Custom aggregation output Codec can also be supplied.getOutputCodec
in interface VortexAggregateFunction<Integer>
Copyright © 2016 The Apache Software Foundation. All rights reserved.