Class ProfilingAggregator
- java.lang.Object
-
- org.elasticsearch.search.aggregations.BucketCollector
-
- org.elasticsearch.search.aggregations.Aggregator
-
- org.elasticsearch.search.profile.aggregation.ProfilingAggregator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Collector,Releasable
public class ProfilingAggregator extends Aggregator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
-
Constructor Summary
Constructors Constructor Description ProfilingAggregator(Aggregator delegate, AggregationProfiler profiler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalAggregationbuildAggregation(long bucket)Build an aggregation for data that has been collected intobucket.InternalAggregationbuildEmptyAggregation()Build an empty aggregation.voidclose()SearchContextcontext()Return theSearchContextattached with thisAggregator.LeafBucketCollectorgetLeafCollector(LeafReaderContext ctx)Create a newcollectorto collect the given context.Stringname()Return the name of this aggregator.Aggregatorparent()Return the parent aggregator.voidpostCollection()Post-collection callback.voidpreCollection()Pre collection callback.ScoreModescoreMode()Indicates what features are required from the scorer.AggregatorsubAggregator(String name)Return the sub aggregator with the provided name.StringtoString()static Aggregatorunwrap(Aggregator agg)-
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
descendsFromBucketAggregator
-
-
-
-
Constructor Detail
-
ProfilingAggregator
public ProfilingAggregator(Aggregator delegate, AggregationProfiler profiler) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close()
-
scoreMode
public ScoreMode scoreMode()
Description copied from interface:CollectorIndicates what features are required from the scorer.
-
name
public String name()
Description copied from class:AggregatorReturn the name of this aggregator.- Specified by:
namein classAggregator
-
context
public SearchContext context()
Description copied from class:AggregatorReturn theSearchContextattached with thisAggregator.- Specified by:
contextin classAggregator
-
parent
public Aggregator parent()
Description copied from class:AggregatorReturn the parent aggregator.- Specified by:
parentin classAggregator
-
subAggregator
public Aggregator subAggregator(String name)
Description copied from class:AggregatorReturn the sub aggregator with the provided name.- Specified by:
subAggregatorin classAggregator
-
buildAggregation
public InternalAggregation buildAggregation(long bucket) throws IOException
Description copied from class:AggregatorBuild an aggregation for data that has been collected intobucket.- Specified by:
buildAggregationin classAggregator- Throws:
IOException
-
buildEmptyAggregation
public InternalAggregation buildEmptyAggregation()
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
getLeafCollector
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx) throws IOException
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Specified by:
getLeafCollectorin classBucketCollector- Parameters:
ctx- next atomic reader context- Throws:
IOException
-
preCollection
public void preCollection() throws IOExceptionDescription copied from class:BucketCollectorPre collection callback.- Specified by:
preCollectionin classBucketCollector- Throws:
IOException
-
postCollection
public void postCollection() throws IOExceptionDescription copied from class:BucketCollectorPost-collection callback.- Specified by:
postCollectionin classBucketCollector- Throws:
IOException
-
unwrap
public static Aggregator unwrap(Aggregator agg)
-
-