public abstract class BucketMetricsParser extends java.lang.Object implements PipelineAggregator.Parser
BucketMetricsPipelineAggregator
Modifier and Type | Field and Description |
---|---|
static ParseField |
FORMAT |
BUCKETS_PATH, GAP_POLICY
Constructor and Description |
---|
BucketMetricsParser() |
Modifier and Type | Method and 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,
QueryParseContext context)
Returns the pipeline aggregator factory with which this parser is
associated.
|
protected boolean |
token(XContentParser parser,
QueryParseContext context,
java.lang.String field,
XContentParser.Token token,
java.util.Map<java.lang.String,java.lang.Object> params) |
public static final ParseField FORMAT
public final BucketMetricsPipelineAggregationBuilder<?> parse(java.lang.String pipelineAggregatorName, QueryParseContext context) throws java.io.IOException
PipelineAggregator.Parser
parse
in interface PipelineAggregator.Parser
pipelineAggregatorName
- The name of the pipeline aggregationcontext
- The search contextjava.io.IOException
- When parsing failsprotected abstract BucketMetricsPipelineAggregationBuilder<?> buildFactory(java.lang.String pipelineAggregatorName, java.lang.String bucketsPaths, java.util.Map<java.lang.String,java.lang.Object> params)
protected boolean token(XContentParser parser, QueryParseContext context, java.lang.String field, XContentParser.Token token, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException
java.io.IOException