public static class TopHitsAggregator.Factory extends AggregatorFactory
factories, name, parent, type| Constructor and Description |
|---|
Factory(String name,
FetchPhase fetchPhase,
SubSearchContext subSearchContext) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator |
create(AggregationContext aggregationContext,
Aggregator parent,
long expectedBucketsCount)
Creates the aggregator
|
AggregatorFactory |
subFactories(AggregatorFactories subFactories)
Registers sub-factories with this factory.
|
doValidate, parent, validatepublic Factory(String name, FetchPhase fetchPhase, SubSearchContext subSearchContext)
public Aggregator create(AggregationContext aggregationContext, Aggregator parent, long expectedBucketsCount)
AggregatorFactorycreate in class AggregatorFactoryaggregationContext - The aggregation contextparent - The parent aggregator (if this is a top level factory, the parent will be null)expectedBucketsCount - If this is a sub-factory of another factory, this will indicate the number of bucket the parent aggregator
may generate (this is an estimation only). For top level factories, this will always be 0public AggregatorFactory subFactories(AggregatorFactories subFactories)
AggregatorFactorysubFactories in class AggregatorFactorysubFactories - The sub-factoriesCopyright © 2009–2016. All rights reserved.