Class TermsAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory
public class TermsAggregatorFactory extends ValuesSourceAggregatorFactory
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TermsAggregatorFactory.ExecutionMode
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
factories, metadata, name, parent, queryShardContext
-
Method Summary
Modifier and Type Method Description protected Aggregator
createUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata)
Create the Aggregator for aValuesSource
that doesn't have values.protected Aggregator
doCreateInternal(SearchContext searchContext, Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)
Create the Aggregator for aValuesSource
that has values.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtype
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, name
-
Method Details
-
createUnmapped
protected Aggregator createUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactory
Create the Aggregator for aValuesSource
that doesn't have values.- Specified by:
createUnmapped
in classValuesSourceAggregatorFactory
- Throws:
java.io.IOException
-
doCreateInternal
protected Aggregator doCreateInternal(SearchContext searchContext, Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactory
Create the Aggregator for aValuesSource
that has values.- Specified by:
doCreateInternal
in classValuesSourceAggregatorFactory
cardinality
- Upper bound of the number ofowningBucketOrd
s that theAggregator
created by this method will be asked to collect.- Throws:
java.io.IOException
-