Module org.elasticsearch.server
Class TermsAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config -
Method Summary
Modifier and TypeMethodDescriptionadjustBucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds, BucketOrder order) protected AggregatorcreateUnmapped(Aggregator parent, Map<String, Object> metadata) Create the Aggregator for aValuesSourcethat doesn't have values.protected AggregatordoCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) Create the Aggregator for aValuesSourcethat has values.static LongPredicategloabalOrdsFilter(IncludeExclude includeExclude, DocValueFormat format, org.apache.lucene.index.SortedSetDocValues values) static org.apache.lucene.index.SortedSetDocValuesglobalOrdsValues(AggregationContext context, ValuesSource.Bytes.WithOrdinals valuesSource) Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtypeMethods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, getParent, getSamplingContext, name
-
Method Details
-
createUnmapped
protected Aggregator createUnmapped(Aggregator parent, Map<String, Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat doesn't have values.- Specified by:
createUnmappedin classValuesSourceAggregatorFactory- Throws:
IOException
-
adjustBucketCountThresholds
public static TermsAggregator.BucketCountThresholds adjustBucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds, BucketOrder order) -
doCreateInternal
protected Aggregator doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat has values.- Specified by:
doCreateInternalin classValuesSourceAggregatorFactory- Parameters:
cardinality- Upper bound of the number ofowningBucketOrds that theAggregatorcreated by this method will be asked to collect.- Throws:
IOException
-
globalOrdsValues
public static org.apache.lucene.index.SortedSetDocValues globalOrdsValues(AggregationContext context, ValuesSource.Bytes.WithOrdinals valuesSource) throws IOException - Throws:
IOException
-
gloabalOrdsFilter
public static LongPredicate gloabalOrdsFilter(IncludeExclude includeExclude, DocValueFormat format, org.apache.lucene.index.SortedSetDocValues values) throws IOException - Throws:
IOException
-