Class MatrixStatsParser
java.lang.Object
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceParser<org.elasticsearch.search.aggregations.support.ValuesSource.Numeric>
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceParser.NumericValuesSourceParser
org.elasticsearch.search.aggregations.matrix.stats.MatrixStatsParser
- All Implemented Interfaces:
org.elasticsearch.search.aggregations.Aggregator.Parser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceParser
ArrayValuesSourceParser.BytesValuesSourceParser, ArrayValuesSourceParser.GeoPointValuesSourceParser, ArrayValuesSourceParser.NumericValuesSourceParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MatrixStatsAggregationBuilder
createFactory
(String aggregationName, org.elasticsearch.search.aggregations.support.ValuesSourceType valuesSourceType, org.elasticsearch.search.aggregations.support.ValueType targetValueType, Map<org.elasticsearch.xcontent.ParseField, Object> otherOptions) Creates aValuesSourceAggregationBuilder
from the information gathered by the subclass.protected boolean
token
(String aggregationName, String currentFieldName, org.elasticsearch.xcontent.XContentParser.Token token, org.elasticsearch.xcontent.XContentParser parser, Map<org.elasticsearch.xcontent.ParseField, Object> otherOptions) Allows subclasses ofArrayValuesSourceParser
to parse extra parameters and store them in aMap
which will later be passed toArrayValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)
.Methods inherited from class org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceParser
parse
-
Constructor Details
-
MatrixStatsParser
public MatrixStatsParser()
-
-
Method Details
-
token
protected boolean token(String aggregationName, String currentFieldName, org.elasticsearch.xcontent.XContentParser.Token token, org.elasticsearch.xcontent.XContentParser parser, Map<org.elasticsearch.xcontent.ParseField, Object> otherOptions) throws IOExceptionDescription copied from class:ArrayValuesSourceParser
Allows subclasses ofArrayValuesSourceParser
to parse extra parameters and store them in aMap
which will later be passed toArrayValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)
.- Specified by:
token
in classArrayValuesSourceParser<org.elasticsearch.search.aggregations.support.ValuesSource.Numeric>
- Parameters:
aggregationName
- the name of the aggregationcurrentFieldName
- the name of the current field being parsedtoken
- the current token for the parserparser
- the parserotherOptions
- aMap
of options to be populated by successive calls to this method which will then be passed to theArrayValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)
method- Returns:
true
if the current token was correctly parsed,false
otherwise- Throws:
IOException
- if an error occurs whilst parsing
-
createFactory
protected MatrixStatsAggregationBuilder createFactory(String aggregationName, org.elasticsearch.search.aggregations.support.ValuesSourceType valuesSourceType, org.elasticsearch.search.aggregations.support.ValueType targetValueType, Map<org.elasticsearch.xcontent.ParseField, Object> otherOptions) Description copied from class:ArrayValuesSourceParser
Creates aValuesSourceAggregationBuilder
from the information gathered by the subclass. Options parsed inArrayValuesSourceParser
itself will be added to the factory after it has been returned by this method.- Specified by:
createFactory
in classArrayValuesSourceParser<org.elasticsearch.search.aggregations.support.ValuesSource.Numeric>
- Parameters:
aggregationName
- the name of the aggregationvaluesSourceType
- the type of theValuesSource
targetValueType
- the target type of the final value output by the aggregationotherOptions
- aMap
containing the extra options parsed by theArrayValuesSourceParser.token(String, String, XContentParser.Token, XContentParser, Map)
method- Returns:
- the created factory
-