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 MatrixStatsAggregationBuildercreateFactory(java.lang.String aggregationName, ValuesSourceType valuesSourceType, ValueType targetValueType, java.util.Map<ParseField,java.lang.Object> otherOptions)Creates aValuesSourceAggregationBuilderfrom the information gathered by the subclass.protected booleantoken(java.lang.String aggregationName, java.lang.String currentFieldName, XContentParser.Token token, XContentParser parser, java.util.Map<ParseField,java.lang.Object> otherOptions)Allows subclasses ofArrayValuesSourceParserto parse extra parameters and store them in aMapwhich 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.IOExceptionDescription copied from class:ArrayValuesSourceParserAllows subclasses ofArrayValuesSourceParserto parse extra parameters and store them in aMapwhich will later be passed toArrayValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map).- Specified by:
tokenin 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- aMapof options to be populated by successive calls to this method which will then be passed to theArrayValuesSourceParser.createFactory(String, ValuesSourceType, ValueType, Map)method- Returns:
trueif the current token was correctly parsed,falseotherwise- 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:ArrayValuesSourceParserCreates aValuesSourceAggregationBuilderfrom the information gathered by the subclass. Options parsed inArrayValuesSourceParseritself will be added to the factory after it has been returned by this method.- Specified by:
createFactoryin classArrayValuesSourceParser<ValuesSource.Numeric>- Parameters:
aggregationName- the name of the aggregationvaluesSourceType- the type of theValuesSourcetargetValueType- the target type of the final value output by the aggregationotherOptions- aMapcontaining the extra options parsed by theArrayValuesSourceParser.token(String, String, XContentParser.Token, XContentParser, Map)method- Returns:
- the created factory
-
-