Interface MapStringTermsAggregator.CollectorSource
- All Superinterfaces:
- AutoCloseable,- Closeable,- org.elasticsearch.core.Releasable
- All Known Implementing Classes:
- MapStringTermsAggregator.ValuesSourceCollectorSource
- Enclosing class:
- MapStringTermsAggregator
public static interface MapStringTermsAggregator.CollectorSource
extends org.elasticsearch.core.Releasable
Abstraction on top of building collectors to fetch values so 
terms,
 significant_terms, and significant_text can share a bunch of
 aggregation code.- 
Method SummaryModifier and TypeMethodDescriptionvoidcollectDebugInfo(BiConsumer<String,Object> add)Collect debug information to add to the profiling results.describe()A description of the strategy to include in profile results.getLeafCollector(IncludeExclude.StringFilter includeExclude, org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub, LongConsumer addRequestCircuitBreakerBytes, MapStringTermsAggregator.CollectConsumer consumer)Build the collector.booleanDoes thisMapStringTermsAggregator.CollectorSourceneed queries to calculate the score?Methods inherited from interface org.elasticsearch.core.Releasableclose
- 
Method Details- 
describeString describe()A description of the strategy to include in profile results.
- 
collectDebugInfoCollect debug information to add to the profiling results. This will only be called if the aggregation is being profiled.
- 
needsScoresboolean needsScores()Does thisMapStringTermsAggregator.CollectorSourceneed queries to calculate the score?
- 
getLeafCollectorLeafBucketCollector getLeafCollector(IncludeExclude.StringFilter includeExclude, org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub, LongConsumer addRequestCircuitBreakerBytes, MapStringTermsAggregator.CollectConsumer consumer) throws IOExceptionBuild the collector.- Throws:
- IOException
 
 
-