Class MapStringTermsAggregator.ValuesSourceCollectorSource
java.lang.Object
org.elasticsearch.search.aggregations.bucket.terms.MapStringTermsAggregator.ValuesSourceCollectorSource
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable,MapStringTermsAggregator.CollectorSource
- Enclosing class:
- MapStringTermsAggregator
public static class MapStringTermsAggregator.ValuesSourceCollectorSource
extends Object
implements MapStringTermsAggregator.CollectorSource
Fetch values from a
ValuesSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCollect 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?
-
Constructor Details
-
ValuesSourceCollectorSource
-
-
Method Details
-
describe
Description copied from interface:MapStringTermsAggregator.CollectorSourceA description of the strategy to include in profile results.- Specified by:
describein interfaceMapStringTermsAggregator.CollectorSource
-
collectDebugInfo
Description copied from interface:MapStringTermsAggregator.CollectorSourceCollect debug information to add to the profiling results. This will only be called if the aggregation is being profiled.- Specified by:
collectDebugInfoin interfaceMapStringTermsAggregator.CollectorSource
-
needsScores
public boolean needsScores()Description copied from interface:MapStringTermsAggregator.CollectorSourceDoes thisMapStringTermsAggregator.CollectorSourceneed queries to calculate the score?- Specified by:
needsScoresin interfaceMapStringTermsAggregator.CollectorSource
-
getLeafCollector
public LeafBucketCollector getLeafCollector(IncludeExclude.StringFilter includeExclude, org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub, LongConsumer addRequestCircuitBreakerBytes, MapStringTermsAggregator.CollectConsumer consumer) throws IOExceptionDescription copied from interface:MapStringTermsAggregator.CollectorSourceBuild the collector.- Specified by:
getLeafCollectorin interfaceMapStringTermsAggregator.CollectorSource- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-