public abstract class ValuesSourceAggregatorFactory<VS extends ValuesSource,AF extends ValuesSourceAggregatorFactory<VS,AF>> extends AggregatorFactory<AF>
AggregatorFactory.MultiBucketAggregatorWrapper
Modifier and Type | Field and Description |
---|---|
protected ValuesSourceConfig<VS> |
config |
Constructor and Description |
---|
ValuesSourceAggregatorFactory(java.lang.String name,
ValuesSourceConfig<VS> config,
SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
Aggregator |
createInternal(Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
protected abstract Aggregator |
createUnmapped(Aggregator parent,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
protected abstract Aggregator |
doCreateInternal(VS valuesSource,
Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
org.joda.time.DateTimeZone |
timeZone() |
asMultiBucketAggregator, create, doValidate, getParent, name, validate
protected ValuesSourceConfig<VS extends ValuesSource> config
public ValuesSourceAggregatorFactory(java.lang.String name, ValuesSourceConfig<VS> 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
public org.joda.time.DateTimeZone timeZone()
public Aggregator createInternal(Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createInternal
in class AggregatorFactory<AF extends ValuesSourceAggregatorFactory<VS,AF>>
java.io.IOException
protected abstract Aggregator createUnmapped(Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
protected abstract Aggregator doCreateInternal(VS valuesSource, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException