Class BucketMetricsParser
java.lang.Object
org.elasticsearch.search.aggregations.pipeline.BucketMetricsParser
- All Implemented Interfaces:
PipelineAggregator.Parser
- Direct Known Subclasses:
ExtendedStatsBucketParser
A parser for parsing requests for a
BucketMetricsPipelineAggregator
-
Field Summary
Fields inherited from interface org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.Parser
BUCKETS_PATH, GAP_POLICY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BucketMetricsPipelineAggregationBuilder<?>
Returns the pipeline aggregator factory with which this parser is associated.protected boolean
token(org.elasticsearch.common.xcontent.XContentParser parser, String field, org.elasticsearch.common.xcontent.XContentParser.Token token, Map<String,Object> params)
-
Field Details
-
FORMAT
public static final org.elasticsearch.common.xcontent.ParseField FORMAT
-
-
Constructor Details
-
BucketMetricsParser
public BucketMetricsParser()
-
-
Method Details
-
parse
public final BucketMetricsPipelineAggregationBuilder<?> parse(String pipelineAggregatorName, org.elasticsearch.common.xcontent.XContentParser parser) throws IOExceptionDescription copied from interface:PipelineAggregator.Parser
Returns the pipeline aggregator factory with which this parser is associated.- Specified by:
parse
in interfacePipelineAggregator.Parser
- Parameters:
pipelineAggregatorName
- The name of the pipeline aggregationparser
- the parser- Returns:
- The resolved pipeline aggregator factory
- Throws:
IOException
- When parsing fails
-
buildFactory
-
token
protected boolean token(org.elasticsearch.common.xcontent.XContentParser parser, String field, org.elasticsearch.common.xcontent.XContentParser.Token token, Map<String,Object> params) throws IOException- Throws:
IOException
-