public interface Aggregator4Master
| Modifier and Type | Method and Description |
|---|---|
<V extends Value> |
aggregatedValue(String name)
Get the aggregated value.
|
<V extends Value> |
aggregatedValue(String name,
V value)
Set the aggregated value by master-computation, generally users may not
need to explicitly set a aggregated value.
|
<V extends Value,C extends Aggregator<V>> |
registerAggregator(String name,
Class<C> aggregator)
Register the aggregator with specified name.
|
<V extends Value,C extends Combiner<V>> |
registerAggregator(String name,
ValueType type,
Class<C> combiner)
Register aggregator with specified value type and a combiner which can
combine values with specified value type.
|
<V extends Value,C extends Combiner<V>> |
registerAggregator(String name,
V defaultValue,
Class<C> combiner)
Register aggregator with specified default value(include type) and
a combiner which can combine values with specified value type.
|
<V extends Value,C extends Aggregator<V>> void registerAggregator(String name, Class<C> aggregator)
<V extends Value,C extends Combiner<V>> void registerAggregator(String name, ValueType type, Class<C> combiner)
<V extends Value,C extends Combiner<V>> void registerAggregator(String name, V defaultValue, Class<C> combiner)
<V extends Value> void aggregatedValue(String name, V value)
<V extends Value> V aggregatedValue(String name)
Copyright © 2020–2022. All rights reserved.