Class CardinalityAggregatorFactory
- java.lang.Object
-
- org.elasticsearch.search.aggregations.AggregatorFactory<AF>
-
- org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
-
- org.elasticsearch.search.aggregations.metrics.cardinality.CardinalityAggregatorFactory
-
public class CardinalityAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
AggregatorFactory.MultiBucketAggregatorWrapper
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config
-
-
Constructor Summary
Constructors Constructor Description CardinalityAggregatorFactory(java.lang.String name, ValuesSourceConfig<ValuesSource> config, java.lang.Long precisionThreshold, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
Method Summary
Modifier and Type Method Description protected Aggregator
createUnmapped(Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
protected Aggregator
doCreateInternal(ValuesSource valuesSource, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getConfig, timeZone
-
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
asMultiBucketAggregator, create, doValidate, getParent, name
-
-
-
-
Constructor Detail
-
CardinalityAggregatorFactory
public CardinalityAggregatorFactory(java.lang.String name, ValuesSourceConfig<ValuesSource> config, java.lang.Long precisionThreshold, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
createUnmapped
protected Aggregator createUnmapped(Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
- Specified by:
createUnmapped
in classValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
- Throws:
java.io.IOException
-
doCreateInternal
protected Aggregator doCreateInternal(ValuesSource valuesSource, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
- Specified by:
doCreateInternal
in classValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
- Throws:
java.io.IOException
-
-