public static class ParentToChildrenAggregator.Factory extends ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild>
ValuesSourceAggregatorFactory.LeafOnly<VS extends ValuesSource>
config
Constructor and Description |
---|
Factory(String name,
ValuesSourceConfig<ValuesSource.Bytes.ParentChild> config,
String parentType,
org.apache.lucene.search.Query parentFilter,
org.apache.lucene.search.Query childFilter) |
Modifier and Type | Method and Description |
---|---|
protected Aggregator |
createUnmapped(AggregationContext aggregationContext,
Aggregator parent,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
protected Aggregator |
doCreateInternal(ValuesSource.Bytes.ParentChild valuesSource,
AggregationContext aggregationContext,
Aggregator parent,
boolean collectsFromSingleBucket,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
createInternal, doValidate
asMultiBucketAggregator, create, name, parent, setMetaData, subFactories, validate
public Factory(String name, ValuesSourceConfig<ValuesSource.Bytes.ParentChild> config, String parentType, org.apache.lucene.search.Query parentFilter, org.apache.lucene.search.Query childFilter)
protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
createUnmapped
in class ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild>
IOException
protected Aggregator doCreateInternal(ValuesSource.Bytes.ParentChild valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
doCreateInternal
in class ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild>
IOException
Copyright © 2009–2016. All rights reserved.