public class TermsAggregatorFactory extends ValuesSourceAggregatorFactory
Modifier and Type | Class and Description |
---|---|
static class |
TermsAggregatorFactory.ExecutionMode |
ValuesSourceAggregatorFactory.LeafOnly<VS extends ValuesSource>
config
factories, name, parent, type
Constructor and Description |
---|
TermsAggregatorFactory(String name,
ValuesSourceConfig config,
Terms.Order order,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude includeExclude,
String executionHint,
Aggregator.SubAggCollectionMode executionMode,
boolean showTermDocCountError) |
Modifier and Type | Method and Description |
---|---|
protected Aggregator |
create(ValuesSource valuesSource,
long expectedBucketsCount,
AggregationContext aggregationContext,
Aggregator parent) |
protected Aggregator |
createUnmapped(AggregationContext aggregationContext,
Aggregator parent) |
static long |
estimatedBucketCount(ValuesSource valuesSource,
Aggregator parent) |
create, doValidate
parent, subFactories, validate
public TermsAggregatorFactory(String name, ValuesSourceConfig config, Terms.Order order, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, String executionHint, Aggregator.SubAggCollectionMode executionMode, boolean showTermDocCountError)
protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent)
createUnmapped
in class ValuesSourceAggregatorFactory
public static long estimatedBucketCount(ValuesSource valuesSource, Aggregator parent)
protected Aggregator create(ValuesSource valuesSource, long expectedBucketsCount, AggregationContext aggregationContext, Aggregator parent)
create
in class ValuesSourceAggregatorFactory
Copyright © 2009–2015. All rights reserved.