Class ProfilingAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.profile.aggregation.ProfilingAggregator
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.search.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
-
Constructor Summary
Constructors Constructor Description ProfilingAggregator(Aggregator delegate, AggregationProfiler profiler) -
Method Summary
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(org.apache.lucene.index.LeafReaderContext ctx)java.lang.Stringname()Return the name of this aggregator.Aggregatorparent()Return the parent aggregator.voidpostCollection()Post-collection callback.voidpreCollection()Pre collection callback.org.apache.lucene.search.ScoreModescoreMode()AggregatorsubAggregator(java.lang.String name)Return the sub aggregator with the provided name.java.lang.StringtoString()static Aggregatorunwrap(Aggregator agg)Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
descendsFromBucketAggregator
-
Constructor Details
-
ProfilingAggregator
public ProfilingAggregator(Aggregator delegate, AggregationProfiler profiler) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
close
public void close() -
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode() -
name
public java.lang.String name()Description copied from class:AggregatorReturn the name of this aggregator.- Specified by:
namein classAggregator
-
context
Description copied from class:AggregatorReturn theSearchContextattached with thisAggregator.- Specified by:
contextin classAggregator
-
parent
Description copied from class:AggregatorReturn the parent aggregator.- Specified by:
parentin classAggregator
-
subAggregator
Description copied from class:AggregatorReturn the sub aggregator with the provided name.- Specified by:
subAggregatorin classAggregator
-
buildAggregation
Description copied from class:AggregatorBuild an aggregation for data that has been collected intobucket.- Specified by:
buildAggregationin classAggregator- Throws:
java.io.IOException
-
buildEmptyAggregation
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
getLeafCollector
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Specified by:
getLeafCollectorin classBucketCollector- Throws:
java.io.IOException
-
preCollection
public void preCollection() throws java.io.IOExceptionDescription copied from class:BucketCollectorPre collection callback.- Specified by:
preCollectionin classBucketCollector- Throws:
java.io.IOException
-
postCollection
public void postCollection() throws java.io.IOExceptionDescription copied from class:BucketCollectorPost-collection callback.- Specified by:
postCollectionin classBucketCollector- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
unwrap
-