Class ArrayValuesSourceAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceAggregatorFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionArrayValuesSourceAggregatorFactory
(String name, Map<String, ValuesSourceConfig> configs, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptioncreateInternal
(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) protected abstract Aggregator
createUnmapped
(Aggregator parent, Map<String, Object> metadata) Create the Aggregator when none of the configured fields can be resolved to aValuesSource
.protected abstract Aggregator
doCreateInternal
(Map<String, ValuesSource> valuesSources, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) Create the Aggregator when any of the configured fields can be resolved to aValuesSource
.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, getStatsSubtype, name
-
Field Details
-
configs
-
-
Constructor Details
-
ArrayValuesSourceAggregatorFactory
public ArrayValuesSourceAggregatorFactory(String name, Map<String, ValuesSourceConfig> configs, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, throws IOExceptionObject> metadata) - Throws:
IOException
-
-
Method Details
-
createInternal
public Aggregator createInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException- Specified by:
createInternal
in classAggregatorFactory
- Throws:
IOException
-
createUnmapped
protected abstract Aggregator createUnmapped(Aggregator parent, Map<String, Object> metadata) throws IOExceptionCreate the Aggregator when none of the configured fields can be resolved to aValuesSource
.- Throws:
IOException
-
doCreateInternal
protected abstract Aggregator doCreateInternal(Map<String, ValuesSource> valuesSources, Aggregator parent, CardinalityUpperBound cardinality, Map<String, throws IOExceptionObject> metadata) Create the Aggregator when any of the configured fields can be resolved to aValuesSource
.- Parameters:
cardinality
- Upper bound of the number ofowningBucketOrd
s that theAggregator
created by this method will be asked to collect.- Throws:
IOException
-