public class MatrixStatsParser extends MultiValuesSourceParser.NumericValuesSourceParser
MultiValuesSourceParser.AnyValuesSourceParser, MultiValuesSourceParser.BytesValuesSourceParser, MultiValuesSourceParser.GeoPointValuesSourceParser, MultiValuesSourceParser.NumericValuesSourceParser
Constructor and Description |
---|
MatrixStatsParser() |
Modifier and Type | Method and Description |
---|---|
protected MatrixStatsAggregationBuilder |
createFactory(java.lang.String aggregationName,
org.elasticsearch.search.aggregations.support.ValuesSourceType valuesSourceType,
org.elasticsearch.search.aggregations.support.ValueType targetValueType,
java.util.Map<org.elasticsearch.common.ParseField,java.lang.Object> otherOptions)
Creates a
ValuesSourceAggregationBuilder from the information
gathered by the subclass. |
protected boolean |
token(java.lang.String aggregationName,
java.lang.String currentFieldName,
org.elasticsearch.common.xcontent.XContentParser.Token token,
org.elasticsearch.common.xcontent.XContentParser parser,
java.util.Map<org.elasticsearch.common.ParseField,java.lang.Object> otherOptions)
Allows subclasses of
MultiValuesSourceParser to parse extra
parameters and store them in a Map which will later be passed to
MultiValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map) . |
parse
protected boolean token(java.lang.String aggregationName, java.lang.String currentFieldName, org.elasticsearch.common.xcontent.XContentParser.Token token, org.elasticsearch.common.xcontent.XContentParser parser, java.util.Map<org.elasticsearch.common.ParseField,java.lang.Object> otherOptions) throws java.io.IOException
MultiValuesSourceParser
MultiValuesSourceParser
to parse extra
parameters and store them in a Map
which will later be passed to
MultiValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)
.token
in class MultiValuesSourceParser<org.elasticsearch.search.aggregations.support.ValuesSource.Numeric>
aggregationName
- the name of the aggregationcurrentFieldName
- the name of the current field being parsedtoken
- the current token for the parserparser
- the parserotherOptions
- a Map
of options to be populated by successive calls
to this method which will then be passed to the
MultiValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)
methodtrue
if the current token was correctly parsed,
false
otherwisejava.io.IOException
- if an error occurs whilst parsingprotected MatrixStatsAggregationBuilder createFactory(java.lang.String aggregationName, org.elasticsearch.search.aggregations.support.ValuesSourceType valuesSourceType, org.elasticsearch.search.aggregations.support.ValueType targetValueType, java.util.Map<org.elasticsearch.common.ParseField,java.lang.Object> otherOptions)
MultiValuesSourceParser
ValuesSourceAggregationBuilder
from the information
gathered by the subclass. Options parsed in
MultiValuesSourceParser
itself will be added to the factory
after it has been returned by this method.createFactory
in class MultiValuesSourceParser<org.elasticsearch.search.aggregations.support.ValuesSource.Numeric>
aggregationName
- the name of the aggregationvaluesSourceType
- the type of the ValuesSource
targetValueType
- the target type of the final value output by the aggregationotherOptions
- a Map
containing the extra options parsed by the
MultiValuesSourceParser.token(String, String, XContentParser.Token, XContentParser, Map)
method