@FunctionalInterface
public static interface Aggregator.Parser
AggregationBuilder
Modifier and Type | Method and Description |
---|---|
AggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
AggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
null
indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).aggregationName
- The name of the aggregationcontext
- The parse contextnull
in case the aggregation should be skippedjava.io.IOException
- When parsing fails