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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
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.boolean
Does thisMapStringTermsAggregator.CollectorSource
need queries to calculate the score?
-
Constructor Details
-
ValuesSourceCollectorSource
-
-
Method Details
-
describe
Description copied from interface:MapStringTermsAggregator.CollectorSource
A description of the strategy to include in profile results.- Specified by:
describe
in interfaceMapStringTermsAggregator.CollectorSource
-
collectDebugInfo
Description copied from interface:MapStringTermsAggregator.CollectorSource
Collect debug information to add to the profiling results. This will only be called if the aggregation is being profiled.- Specified by:
collectDebugInfo
in interfaceMapStringTermsAggregator.CollectorSource
-
needsScores
public boolean needsScores()Description copied from interface:MapStringTermsAggregator.CollectorSource
Does thisMapStringTermsAggregator.CollectorSource
need queries to calculate the score?- Specified by:
needsScores
in 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.CollectorSource
Build the collector.- Specified by:
getLeafCollector
in interfaceMapStringTermsAggregator.CollectorSource
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-