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 classTermsAggregatorFactory.ExecutionMode -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config -
Method Summary
Modifier and Type Method Description protected AggregatorcreateUnmapped(Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata)Create the Aggregator for aValuesSourcethat doesn't have values.protected AggregatordoCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)Create the Aggregator for aValuesSourcethat has values.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtypeMethods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
createUnmapped
protected Aggregator createUnmapped(Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat doesn't have values.- Specified by:
createUnmappedin classValuesSourceAggregatorFactory- Throws:
java.io.IOException
-
doCreateInternal
protected Aggregator doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat has values.- Specified by:
doCreateInternalin classValuesSourceAggregatorFactorycardinality- Upper bound of the number ofowningBucketOrds that theAggregatorcreated by this method will be asked to collect.- Throws:
java.io.IOException
-