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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MatrixStatsAggregationBuildercreateFactory(String aggregationName, org.elasticsearch.search.aggregations.support.ValuesSourceType valuesSourceType, org.elasticsearch.search.aggregations.support.ValueType targetValueType, Map<org.elasticsearch.xcontent.ParseField, Object> otherOptions) Creates aValuesSourceAggregationBuilderfrom the information gathered by the subclass.protected booleantoken(String aggregationName, String currentFieldName, org.elasticsearch.xcontent.XContentParser.Token token, org.elasticsearch.xcontent.XContentParser parser, Map<org.elasticsearch.xcontent.ParseField, 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.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: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<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- 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:
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: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<org.elasticsearch.search.aggregations.support.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
-