@PublicEvolving public class AggregatorWithName<T extends Value> extends Object
Aggregator with the name it is registered under.| Constructor and Description |
|---|
AggregatorWithName(String name,
Aggregator<T> aggregator)
Creates a new instance for the given aggregator and name.
|
| Modifier and Type | Method and Description |
|---|---|
Aggregator<T> |
getAggregator()
Gets the aggregator.
|
String |
getName()
Gets the name that the aggregator is registered under.
|
public AggregatorWithName(String name, Aggregator<T> aggregator)
name - The name that the aggregator is registered under.aggregator - The aggregator.public String getName()
public Aggregator<T> getAggregator()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.