public void complete(FlowProcess flow_process, AggregatorCall<Object> ag_call) {
   try {
     ag_call.getOutputCollector().add(Util.coerceToTuple(ag_call.getContext()));
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
  @Override
  public void complete(FlowProcess flowProcess, AggregatorCall aggregatorCall) {
    Tuple result = new Tuple();
    result.add(min);
    result.add(max);

    aggregatorCall.getOutputCollector().add(result);
  }
Example #3
0
 public void complete(FlowProcess flowProcess, AggregatorCall<Tuple[]> aggregatorCall) {
   if (aggregatorCall.getContext()[0] != null)
     aggregatorCall.getOutputCollector().add(getResult(aggregatorCall));
 }
 @Override
 public void setDelegate(AggregatorCall<Context> delegate) {
   super.setDelegate(delegate);
   collector.setOutputCollector(delegate.getOutputCollector());
 }