public abstract class BucketMetricsParser extends 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 PipelineAggregatorFactory |
buildFactory(String pipelineAggregatorName,
String[] bucketsPaths,
BucketHelpers.GapPolicy gapPolicy,
ValueFormatter formatter,
Map<String,Object> unparsedParams) |
PipelineAggregatorFactory |
parse(String pipelineAggregatorName,
XContentParser parser,
SearchContext context)
Returns the pipeline aggregator factory with which this parser is
associated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
type
public static final ParseField FORMAT
public final PipelineAggregatorFactory parse(String pipelineAggregatorName, XContentParser parser, SearchContext context) throws IOException
PipelineAggregator.Parser
parse
in interface PipelineAggregator.Parser
pipelineAggregatorName
- The name of the pipeline aggregationparser
- The xcontent parsercontext
- The search contextIOException
- When parsing failsprotected abstract PipelineAggregatorFactory buildFactory(String pipelineAggregatorName, String[] bucketsPaths, BucketHelpers.GapPolicy gapPolicy, ValueFormatter formatter, Map<String,Object> unparsedParams) throws ParseException
ParseException
Copyright © 2009–2016. All rights reserved.