- Enclosing class:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface Aggregator.Parser
Parses the aggregation request and creates the appropriate aggregator factory for it.
- See Also:
parseAggregationBuilder parse(String aggregationName, org.elasticsearch.common.xcontent.XContentParser parser) throws IOExceptionReturns the aggregator factory with which this parser is associated, may return
nullindicating the aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).
aggregationName- The name of the aggregation
parser- The parser
- The resolved aggregator factory or
nullin case the aggregation should be skipped
IOException- When parsing fails