public class SumAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource.Numeric,SumAggregatorFactory>
AggregatorFactory.MultiBucketAggregatorWrapper
config
Constructor and Description |
---|
SumAggregatorFactory(java.lang.String name,
ValuesSourceConfig<ValuesSource.Numeric> config,
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.Numeric 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 SumAggregatorFactory(java.lang.String name, ValuesSourceConfig<ValuesSource.Numeric> config, 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.Numeric,SumAggregatorFactory>
java.io.IOException
protected Aggregator doCreateInternal(ValuesSource.Numeric 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.Numeric,SumAggregatorFactory>
java.io.IOException