public class NamedAggregators extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NamedAggregators.CombineFunctionState<InputT,InterT,OutputT> |
static interface |
NamedAggregators.State<InputT,InterT,OutputT> |
| Constructor and Description |
|---|
NamedAggregators()
Constructs a new NamedAggregators instance.
|
NamedAggregators(String name,
NamedAggregators.State<?,?,?> state)
Constructs a new named aggregators instance that contains a mapping from the specified
`named` to the associated initial state.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getValue(String name,
Class<T> typeClass) |
NamedAggregators |
merge(NamedAggregators other)
Merges another NamedAggregators instance with this instance.
|
Map<String,?> |
renderAll() |
String |
toString() |
public NamedAggregators()
public NamedAggregators(String name, NamedAggregators.State<?,?,?> state)
name - Name of aggregator.state - Associated State.public <T> T getValue(String name, Class<T> typeClass)
T - Type to be returned.name - Name of aggregator to retrieve.typeClass - Type class to cast the value to.null if the specified aggregator could not be found.public Map<String,?> renderAll()
public NamedAggregators merge(NamedAggregators other)
other - The other instance of named aggregators ot merge.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.