aggregators.put(a.getName(), a.getAggregator());
public Collection<AggregatorWithName<?>> getAllRegisteredAggregators() { ArrayList<AggregatorWithName<?>> list = new ArrayList<AggregatorWithName<?>>(this.registry.size()); for (Map.Entry<String, Aggregator<?>> entry : this.registry.entrySet()) { @SuppressWarnings("unchecked") Aggregator<Value> valAgg = (Aggregator<Value>) entry.getValue(); list.add(new AggregatorWithName<>(entry.getKey(), valAgg)); } return list; }
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
assertEquals(aggregatorName, iteration.getAggregators().getAllRegisteredAggregators().iterator().next().getName());
aggregators.put(a.getName(), a.getAggregator());
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
public Collection<AggregatorWithName<?>> getAllRegisteredAggregators() { ArrayList<AggregatorWithName<?>> list = new ArrayList<AggregatorWithName<?>>(this.registry.size()); for (Map.Entry<String, Aggregator<?>> entry : this.registry.entrySet()) { @SuppressWarnings("unchecked") Aggregator<Value> valAgg = (Aggregator<Value>) entry.getValue(); list.add(new AggregatorWithName<>(entry.getKey(), valAgg)); } return list; }
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()); } }
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
public Collection<AggregatorWithName<?>> getAllRegisteredAggregators() { ArrayList<AggregatorWithName<?>> list = new ArrayList<AggregatorWithName<?>>(this.registry.size()); for (Map.Entry<String, Aggregator<?>> entry : this.registry.entrySet()) { @SuppressWarnings("unchecked") Aggregator<Value> valAgg = (Aggregator<Value>) entry.getValue(); list.add(new AggregatorWithName<>(entry.getKey(), valAgg)); } return list; }
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()); } }
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
throw new RuntimeException("Missing config entry for aggregator."); list.add(new AggregatorWithName<Value>(name, aggObj));
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()); } }
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
throw new RuntimeException("Missing config entry for aggregator."); list.add(new AggregatorWithName<Value>(name, aggObj));
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()); } }
throw new RuntimeException("Missing config entry for aggregator."); list.add(new AggregatorWithName<Value>(name, aggObj));
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); }
throw new RuntimeException("Missing config entry for aggregator."); list.add(new AggregatorWithName<Value>(name, aggObj));