Class ArrayValuesSourceAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceAggregatorFactory
public abstract class ArrayValuesSourceAggregatorFactory
extends org.elasticsearch.search.aggregations.AggregatorFactory
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
context, factories, metadata, name, parent
-
Constructor Summary
ConstructorDescriptionArrayValuesSourceAggregatorFactory
(String name, Map<String, org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.search.aggregations.Aggregator
createInternal
(org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String, Object> metadata) protected abstract org.elasticsearch.search.aggregations.Aggregator
createUnmapped
(org.elasticsearch.search.aggregations.Aggregator parent, Map<String, Object> metadata) Create the Aggregator when none of the configured fields can be resolved to aValuesSource
.protected abstract org.elasticsearch.search.aggregations.Aggregator
doCreateInternal
(Map<String, org.elasticsearch.search.aggregations.support.ValuesSource> valuesSources, org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.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, org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder, Map<String, throws IOExceptionObject> metadata) - Throws:
IOException
-
-
Method Details
-
createInternal
public org.elasticsearch.search.aggregations.Aggregator createInternal(org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException- Specified by:
createInternal
in classorg.elasticsearch.search.aggregations.AggregatorFactory
- Throws:
IOException
-
createUnmapped
protected abstract org.elasticsearch.search.aggregations.Aggregator createUnmapped(org.elasticsearch.search.aggregations.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 org.elasticsearch.search.aggregations.Aggregator doCreateInternal(Map<String, org.elasticsearch.search.aggregations.support.ValuesSource> valuesSources, org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.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
-