Class MatrixStatsParser
- java.lang.Object
-
- org.elasticsearch.search.aggregations.support.ArrayValuesSourceParser<ValuesSource.Numeric>
-
- org.elasticsearch.search.aggregations.support.ArrayValuesSourceParser.NumericValuesSourceParser
-
- org.elasticsearch.search.aggregations.matrix.stats.MatrixStatsParser
-
- All Implemented Interfaces:
Aggregator.Parser
public class MatrixStatsParser extends ArrayValuesSourceParser.NumericValuesSourceParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ArrayValuesSourceParser
ArrayValuesSourceParser.AnyValuesSourceParser, ArrayValuesSourceParser.BytesValuesSourceParser, ArrayValuesSourceParser.GeoPointValuesSourceParser, ArrayValuesSourceParser.NumericValuesSourceParser
-
-
Constructor Summary
Constructors Constructor Description MatrixStatsParser()
-
Method Summary
Modifier and Type Method Description protected MatrixStatsAggregationBuilder
createFactory(java.lang.String aggregationName, ValuesSourceType valuesSourceType, ValueType targetValueType, java.util.Map<ParseField,java.lang.Object> otherOptions)
Creates aValuesSourceAggregationBuilder
from the information gathered by the subclass.protected boolean
token(java.lang.String aggregationName, java.lang.String currentFieldName, XContentParser.Token token, XContentParser parser, java.util.Map<ParseField,java.lang.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.support.ArrayValuesSourceParser
parse
-
-
-
-
Method Detail
-
token
protected boolean token(java.lang.String aggregationName, java.lang.String currentFieldName, XContentParser.Token token, XContentParser parser, java.util.Map<ParseField,java.lang.Object> otherOptions) throws java.io.IOException
Description 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<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:
java.io.IOException
- if an error occurs whilst parsing
-
createFactory
protected MatrixStatsAggregationBuilder createFactory(java.lang.String aggregationName, ValuesSourceType valuesSourceType, ValueType targetValueType, java.util.Map<ParseField,java.lang.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<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
-
-