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<?>
parse
(String pipelineAggregatorName, XContentParser parser) Returns the pipeline aggregator factory with which this parser is associated.protected boolean
token
(XContentParser parser, String field, XContentParser.Token token, Map<String, Object> params)
-
Field Details
-
FORMAT
-
-
Constructor Details
-
BucketMetricsParser
public BucketMetricsParser()
-
-
Method Details
-
parse
public final BucketMetricsPipelineAggregationBuilder<?> parse(String pipelineAggregatorName, XContentParser parser) throws IOException Description 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(XContentParser parser, String field, XContentParser.Token token, Map<String, Object> params) throws IOException- Throws:
IOException
-