public class CardinalityAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
AggregatorFactory.MultiBucketAggregatorWrapper
config
Constructor and 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) |
Modifier and Type | Method and 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) |
createInternal, timeZone
asMultiBucketAggregator, create, doValidate, getParent, name, validate
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
java.io.IOException
protected Aggregator createUnmapped(Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createUnmapped
in class ValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
java.io.IOException
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
doCreateInternal
in class ValuesSourceAggregatorFactory<ValuesSource,CardinalityAggregatorFactory>
java.io.IOException