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, validateprotected 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 AggregatorFactoryIOExceptionpublic void doValidate()
doValidate in class AggregatorFactoryprotected abstract Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
IOExceptionprotected abstract Aggregator doCreateInternal(VS valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.