Class MultiValuesSourceAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.MultiValuesSourceAggregatorFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
ValuesSourceConfig> protected final DocValueFormat
-
Constructor Summary
ConstructorDescriptionMultiValuesSourceAggregatorFactory
(String name, Map<String, ValuesSourceConfig> configs, DocValueFormat format, 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 an aggregator that won't collect anything but will return an appropriate empty aggregation.protected abstract Aggregator
doCreateInternal
(Map<String, ValuesSourceConfig> configs, DocValueFormat format, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) Create the Aggregator.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, getStatsSubtype, name
-
Field Details
-
configs
-
format
-
-
Constructor Details
-
MultiValuesSourceAggregatorFactory
public MultiValuesSourceAggregatorFactory(String name, Map<String, ValuesSourceConfig> configs, DocValueFormat format, 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 an aggregator that won't collect anything but will return an appropriate empty aggregation.- Throws:
IOException
-
doCreateInternal
protected abstract Aggregator doCreateInternal(Map<String, ValuesSourceConfig> configs, DocValueFormat format, Aggregator parent, CardinalityUpperBound cardinality, Map<String, throws IOExceptionObject> metadata) Create the Aggregator.- Parameters:
cardinality
- Upper bound of the number ofowningBucketOrd
s that theAggregator
created by this method will be asked to collect.- Throws:
IOException
-