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
,org.apache.lucene.search.Collector
,org.elasticsearch.core.Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketComparator(String key, SortOrder order)
Builds a comparator that compares two buckets aggregated by this Aggregator.buildAggregations(long[] owningBucketOrds)
Build the results of this aggregation.Build an empty aggregation.void
close()
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)
name()
Return the name of this aggregator.parent()
Return the parent aggregator.void
Post-collection callback.void
Pre collection callback.Resolve a sort path to the target.org.apache.lucene.search.ScoreMode
subAggregator(String name)
Return the sub aggregator with the provided name.Get the aggregators running under this one.toString()
static Aggregator
unwrap(Aggregator agg)
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAgg
-
Constructor Details
-
ProfilingAggregator
- Throws:
IOException
-
-
Method Details
-
close
public void close() -
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode() -
name
Description copied from class:Aggregator
Return the name of this aggregator.- Specified by:
name
in classAggregator
-
parent
Description copied from class:Aggregator
Return the parent aggregator.- Specified by:
parent
in classAggregator
-
subAggregator
Description copied from class:Aggregator
Return the sub aggregator with the provided name.- Specified by:
subAggregator
in classAggregator
-
resolveSortPath
public Aggregator resolveSortPath(AggregationPath.PathElement next, Iterator<AggregationPath.PathElement> path)Description copied from class:Aggregator
Resolve a sort path to the target.The default implementation throws an exception but we override it on aggregations that support sorting.
- Overrides:
resolveSortPath
in classAggregator
-
bucketComparator
Description copied from class:Aggregator
Builds 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:
bucketComparator
in classAggregator
-
buildAggregations
Description copied from class:Aggregator
Build the results of this aggregation.- Specified by:
buildAggregations
in 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
-
buildEmptyAggregation
Description copied from class:Aggregator
Build an empty aggregation.- Specified by:
buildEmptyAggregation
in classAggregator
-
getLeafCollector
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws IOException- Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Specified by:
getLeafCollector
in classBucketCollector
- Throws:
IOException
-
preCollection
Description copied from class:BucketCollector
Pre collection callback.- Specified by:
preCollection
in classBucketCollector
- Throws:
IOException
-
postCollection
Description copied from class:BucketCollector
Post-collection callback.- Specified by:
postCollection
in classBucketCollector
- Throws:
IOException
-
toString
-
subAggregators
Description copied from class:Aggregator
Get the aggregators running under this one.- Specified by:
subAggregators
in classAggregator
-
unwrap
-