Package alluxio.stress.rpc
Class RpcTaskResult.Aggregator
- java.lang.Object
-
- alluxio.stress.rpc.RpcTaskResult.Aggregator
-
- All Implemented Interfaces:
TaskResult.Aggregator<RpcTaskResult>
- Enclosing class:
- RpcTaskResult
public static final class RpcTaskResult.Aggregator extends java.lang.Object implements TaskResult.Aggregator<RpcTaskResult>
An aggregator that merges multipleRpcTaskResult.
-
-
Constructor Summary
Constructors Constructor Description Aggregator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Summaryaggregate(java.lang.Iterable<RpcTaskResult> results)Aggregates multiple instances of aTaskResultto a summary.static RpcTaskResultreduceList(java.lang.Iterable<RpcTaskResult> results)Reduce a list ofRpcTaskResultinto one.
-
-
-
Method Detail
-
aggregate
public Summary aggregate(java.lang.Iterable<RpcTaskResult> results) throws java.lang.Exception
Description copied from interface:TaskResult.AggregatorAggregates multiple instances of aTaskResultto a summary.- Specified by:
aggregatein interfaceTaskResult.Aggregator<RpcTaskResult>- Parameters:
results- list ofTaskResult- Returns:
- the aggregated summary
- Throws:
java.lang.Exception
-
reduceList
public static RpcTaskResult reduceList(java.lang.Iterable<RpcTaskResult> results)
Reduce a list ofRpcTaskResultinto one.- Parameters:
results- a list of results to combine- Returns:
- the combined result
-
-