Module org.elasticsearch.server
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,Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionModeNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.BucketCollector
BucketCollector.BucketCollectorWrapper -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketComparator(String key, SortOrder order) Builds a comparator that compares two buckets aggregated by this Aggregator.buildAggregations(LongArray owningBucketOrds) Build the results of this aggregation.Build an empty aggregation.voidclose()name()Return the name of this aggregator.parent()Return the parent aggregator.voidPost-collection callback.voidPre collection callback.voidRelease this aggregation and its sub-aggregations.Resolve a sort path to the target.org.apache.lucene.search.ScoreModeIndicates what features are required from the scorer.subAggregator(String name) Return the sub aggregator with the provided name.Get the aggregators running under this one.toString()static Aggregatorunwrap(Aggregator agg) Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAggMethods inherited from class org.elasticsearch.search.aggregations.BucketCollector
asCollector
-
Constructor Details
-
ProfilingAggregator
-
-
Method Details
-
close
public void close() -
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()Description copied from class:BucketCollectorIndicates what features are required from the scorer.- Specified by:
scoreModein classBucketCollector
-
name
Description copied from class:AggregatorReturn the name of this aggregator.- Specified by:
namein 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
-
resolveSortPath
public Aggregator resolveSortPath(AggregationPath.PathElement next, Iterator<AggregationPath.PathElement> path) Description copied from class:AggregatorResolve a sort path to the target.The default implementation throws an exception but we override it on aggregations that support sorting.
- Overrides:
resolveSortPathin classAggregator
-
bucketComparator
Description copied from class:AggregatorBuilds a comparator that compares two buckets aggregated by this Aggregator.The default implementation throws an exception but we override it on aggregations that support sorting.
- Overrides:
bucketComparatorin classAggregator
-
buildAggregations
Description copied from class:AggregatorBuild the results of this aggregation.- Specified by:
buildAggregationsin classAggregator- Parameters:
owningBucketOrds- the ordinals of the buckets that we want to collect from this aggregation- Returns:
- the results for each ordinal, in the same order as the array of ordinals
- Throws:
IOException
-
releaseAggregations
public void releaseAggregations()Description copied from class:AggregatorRelease this aggregation and its sub-aggregations.- Specified by:
releaseAggregationsin classAggregator
-
buildEmptyAggregation
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
getLeafCollector
- Specified by:
getLeafCollectorin classBucketCollector- Throws:
IOException
-
preCollection
Description copied from class:BucketCollectorPre collection callback.- Specified by:
preCollectionin classBucketCollector- Throws:
IOException
-
postCollection
Description copied from class:BucketCollectorPost-collection callback.- Specified by:
postCollectionin classBucketCollector- Throws:
IOException
-
toString
-
subAggregators
Description copied from class:AggregatorGet the aggregators running under this one.- Specified by:
subAggregatorsin classAggregator
-
unwrap
-