public class ChildrenParser extends java.lang.Object implements Aggregator.Parser
Constructor and Description |
---|
ChildrenParser() |
Modifier and Type | Method and Description |
---|---|
ChildrenAggregatorBuilder |
getFactoryPrototypes() |
ChildrenAggregatorBuilder |
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() |
public java.lang.String type()
type
in interface Aggregator.Parser
public ChildrenAggregatorBuilder parse(java.lang.String aggregationName, XContentParser parser, QueryParseContext context) throws java.io.IOException
Aggregator.Parser
null
indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse
in interface Aggregator.Parser
aggregationName
- The name of the aggregationparser
- The xcontent parsercontext
- The search contextnull
in case the aggregation should be skippedjava.io.IOException
- When parsing failspublic ChildrenAggregatorBuilder getFactoryPrototypes()
getFactoryPrototypes
in interface Aggregator.Parser
AggregatorBuilder
instance for this parser
that can be used for deserialization