public static interface Aggregator.Parser
AggregatorBuilder
Modifier and Type | Method and Description |
---|---|
AggregatorBuilder<?> |
getFactoryPrototypes() |
AggregatorBuilder<?> |
parse(java.lang.String aggregationName,
XContentParser parser,
QueryParseContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
java.lang.String |
type() |
java.lang.String type()
AggregatorBuilder<?> parse(java.lang.String aggregationName, XContentParser parser, 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 aggregationparser
- The xcontent parsercontext
- The search contextnull
in case the aggregation should be skippedjava.io.IOException
- When parsing failsAggregatorBuilder<?> getFactoryPrototypes()
AggregatorBuilder
instance for this parser
that can be used for deserialization