Class BucketMetricsParser
- java.lang.Object
-
- org.elasticsearch.search.aggregations.pipeline.BucketMetricsParser
-
- All Implemented Interfaces:
PipelineAggregator.Parser
- Direct Known Subclasses:
ExtendedStatsBucketParser
public abstract class BucketMetricsParser extends Object implements PipelineAggregator.Parser
A parser for parsing requests for aBucketMetricsPipelineAggregator
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldFORMAT-
Fields inherited from interface org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.Parser
BUCKETS_PATH, GAP_POLICY
-
-
Constructor Summary
Constructors Constructor Description BucketMetricsParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BucketMetricsPipelineAggregationBuilder<?>buildFactory(String pipelineAggregatorName, String bucketsPaths, Map<String,Object> params)BucketMetricsPipelineAggregationBuilder<?>parse(String pipelineAggregatorName, XContentParser parser)Returns the pipeline aggregator factory with which this parser is associated.protected booleantoken(XContentParser parser, String field, XContentParser.Token token, Map<String,Object> params)
-
-
-
Field Detail
-
FORMAT
public static final ParseField FORMAT
-
-
Method Detail
-
parse
public final BucketMetricsPipelineAggregationBuilder<?> parse(String pipelineAggregatorName, XContentParser parser) throws IOException
Description copied from interface:PipelineAggregator.ParserReturns the pipeline aggregator factory with which this parser is associated.- Specified by:
parsein interfacePipelineAggregator.Parser- Parameters:
pipelineAggregatorName- The name of the pipeline aggregationparser- the parser- Returns:
- The resolved pipeline aggregator factory
- Throws:
IOException- When parsing fails
-
buildFactory
protected abstract BucketMetricsPipelineAggregationBuilder<?> buildFactory(String pipelineAggregatorName, String bucketsPaths, Map<String,Object> params)
-
token
protected boolean token(XContentParser parser, String field, XContentParser.Token token, Map<String,Object> params) throws IOException
- Throws:
IOException
-
-