aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());