public class ExpressionPostAggregator extends Object implements PostAggregator
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpressionPostAggregator.Ordering |
| Constructor and Description |
|---|
ExpressionPostAggregator(String name,
String expression,
String ordering,
ExprMacroTable macroTable)
Constructor for serialization.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
compute(Map<String,Object> values) |
ExpressionPostAggregator |
decorate(Map<String,AggregatorFactory> aggregators)
Returns a richer post aggregator which are built from the given aggregators with their names and some accessible
environmental variables such as ones in the object scope.
|
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
Comparator |
getComparator() |
Set<String> |
getDependentFields() |
String |
getExpression() |
String |
getName() |
String |
getOrdering() |
int |
hashCode() |
String |
toString() |
public ExpressionPostAggregator(String name, String expression, @Nullable String ordering, ExprMacroTable macroTable)
public Set<String> getDependentFields()
getDependentFields in interface PostAggregatorpublic Comparator getComparator()
getComparator in interface PostAggregatorpublic Object compute(Map<String,Object> values)
compute in interface PostAggregatorpublic String getName()
getName in interface PostAggregatorpublic ExpressionPostAggregator decorate(Map<String,AggregatorFactory> aggregators)
PostAggregatordecorate in interface PostAggregatoraggregators - A map of aggregator factories with their names.public String getExpression()
public String getOrdering()
public byte[] getCacheKey()
getCacheKey in interface CacheableCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.