Class BucketMetricsParser
- java.lang.Object
-
- org.elasticsearch.search.aggregations.pipeline.bucketmetrics.BucketMetricsParser
-
- All Implemented Interfaces:
PipelineAggregator.Parser
- Direct Known Subclasses:
ExtendedStatsBucketParser
public abstract class BucketMetricsParser extends java.lang.Object implements PipelineAggregator.Parser
A parser for parsing requests for aBucketMetricsPipelineAggregator
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
FORMAT
-
Fields inherited from interface org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.Parser
BUCKETS_PATH, GAP_POLICY
-
-
Constructor Summary
Constructors Constructor Description BucketMetricsParser()
-
Method Summary
Modifier and Type Method Description protected abstract BucketMetricsPipelineAggregationBuilder<?>
buildFactory(java.lang.String pipelineAggregatorName, java.lang.String bucketsPaths, java.util.Map<java.lang.String,java.lang.Object> params)
BucketMetricsPipelineAggregationBuilder<?>
parse(java.lang.String pipelineAggregatorName, XContentParser parser)
Returns the pipeline aggregator factory with which this parser is associated.protected boolean
token(XContentParser parser, java.lang.String field, XContentParser.Token token, java.util.Map<java.lang.String,java.lang.Object> params)
-
-
-
Field Detail
-
FORMAT
public static final ParseField FORMAT
-
-
Method Detail
-
parse
public final BucketMetricsPipelineAggregationBuilder<?> parse(java.lang.String pipelineAggregatorName, XContentParser parser) throws java.io.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:
java.io.IOException
- When parsing fails
-
buildFactory
protected abstract BucketMetricsPipelineAggregationBuilder<?> buildFactory(java.lang.String pipelineAggregatorName, java.lang.String bucketsPaths, java.util.Map<java.lang.String,java.lang.Object> params)
-
token
protected boolean token(XContentParser parser, java.lang.String field, XContentParser.Token token, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException
- Throws:
java.io.IOException
-
-