public static class ParentToChildrenAggregator.Factory extends ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild>
ValuesSourceAggregatorFactory.LeafOnly<VS extends ValuesSource>config| Constructor and Description |
|---|
ParentToChildrenAggregator.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, doValidateasMultiBucketAggregator, create, name, parent, setMetaData, subFactories, validatepublic ParentToChildrenAggregator.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>IOExceptionprotected 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>IOExceptionCopyright © 2009–2017. All rights reserved.