public abstract class NumericValuesSourceMetricsAggregatorParser<S extends InternalNumericMetricsAggregation> extends Object implements Aggregator.Parser
| Modifier and Type | Field and Description |
|---|---|
protected InternalAggregation.Type |
aggType |
| Modifier | Constructor and Description |
|---|---|
protected |
NumericValuesSourceMetricsAggregatorParser(InternalAggregation.Type aggType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AggregatorFactory |
createFactory(String aggregationName,
ValuesSourceConfig<ValuesSource.Numeric> config) |
AggregatorFactory |
parse(String aggregationName,
XContentParser parser,
SearchContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
String |
type() |
protected final InternalAggregation.Type aggType
protected NumericValuesSourceMetricsAggregatorParser(InternalAggregation.Type aggType)
public String type()
type in interface Aggregator.Parserpublic AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException
Aggregator.Parsernull indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse in interface Aggregator.ParseraggregationName - The name of the aggregationparser - The xcontent parsercontext - The search contextnull in case the aggregation should be skippedIOException - When parsing failsprotected abstract AggregatorFactory createFactory(String aggregationName, ValuesSourceConfig<ValuesSource.Numeric> config)
Copyright © 2009–2017. All rights reserved.