public abstract class ValuesSourceAggregatorFactory<VS extends ValuesSource> extends AggregatorFactory
Modifier and Type | Class and Description |
---|---|
static class |
ValuesSourceAggregatorFactory.LeafOnly<VS extends ValuesSource> |
Modifier and Type | Field and Description |
---|---|
protected ValuesSourceConfig<VS> |
config |
Modifier | Constructor and Description |
---|---|
protected |
ValuesSourceAggregatorFactory(String name,
String type,
ValuesSourceConfig<VS> config) |
Modifier and Type | Method and Description |
---|---|
Aggregator |
createInternal(AggregationContext context,
Aggregator parent,
boolean collectsFromSingleBucket,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
protected abstract Aggregator |
createUnmapped(AggregationContext aggregationContext,
Aggregator parent,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
protected abstract Aggregator |
doCreateInternal(VS valuesSource,
AggregationContext aggregationContext,
Aggregator parent,
boolean collectsFromSingleBucket,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
void |
doValidate() |
asMultiBucketAggregator, create, name, parent, setMetaData, subFactories, validate
protected ValuesSourceConfig<VS extends ValuesSource> config
protected ValuesSourceAggregatorFactory(String name, String type, ValuesSourceConfig<VS> config)
public Aggregator createInternal(AggregationContext context, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
createInternal
in class AggregatorFactory
IOException
public void doValidate()
doValidate
in class AggregatorFactory
protected abstract Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
IOException
protected abstract Aggregator doCreateInternal(VS valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.