@FunctionalInterface
public static interface Aggregator.Parser
AggregationBuilder
Modifier and Type | Method and Description |
---|---|
AggregationBuilder |
parse(java.lang.String aggregationName,
XContentParser parser)
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, XContentParser parser) 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 aggregationparser
- The parsernull
in case the aggregation should be skippedjava.io.IOException
- When parsing fails