public interface MasterAggregatorUsage extends AggregatorUsage
| Modifier and Type | Method and Description | 
|---|---|
<A extends org.apache.hadoop.io.Writable> | 
registerAggregator(String name,
                  Class<? extends Aggregator<A>> aggregatorClass)
Register an aggregator in preSuperstep() and/or preApplication(). 
 | 
<A extends org.apache.hadoop.io.Writable> | 
registerPersistentAggregator(String name,
                            Class<? extends Aggregator<A>> aggregatorClass)
Register persistent aggregator in preSuperstep() and/or
 preApplication(). 
 | 
<A extends org.apache.hadoop.io.Writable> | 
setAggregatedValue(String name,
                  A value)
Sets value of an aggregator. 
 | 
getAggregatedValue<A extends org.apache.hadoop.io.Writable> boolean registerAggregator(String name, Class<? extends Aggregator<A>> aggregatorClass) throws InstantiationException, IllegalAccessException
A - Aggregator typename - of aggregatoraggregatorClass - Class type of the aggregatorInstantiationExceptionIllegalAccessException<A extends org.apache.hadoop.io.Writable> boolean registerPersistentAggregator(String name, Class<? extends Aggregator<A>> aggregatorClass) throws InstantiationException, IllegalAccessException
A - Aggregator typename - of aggregatoraggregatorClass - Class type of the aggregatorInstantiationExceptionIllegalAccessException<A extends org.apache.hadoop.io.Writable> void setAggregatedValue(String name, A value)
A - Aggregated valuename - Name of aggregatorvalue - Value to setCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.