java.io.Closeable, java.lang.AutoCloseable, org.apache.lucene.search.Collector, Releasablepublic class ProfilingAggregator extends Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionModeNO_OP_COLLECTOR| Constructor | Description |
|---|---|
ProfilingAggregator(Aggregator delegate,
AggregationProfiler profiler) |
| Modifier and Type | Method | Description |
|---|---|---|
InternalAggregation |
buildAggregation(long bucket) |
Build an aggregation for data that has been collected into
bucket. |
InternalAggregation |
buildEmptyAggregation() |
Build an empty aggregation.
|
void |
close() |
|
SearchContext |
context() |
Return the
SearchContext attached with this Aggregator. |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) |
|
java.lang.String |
name() |
Return the name of this aggregator.
|
boolean |
needsScores() |
|
Aggregator |
parent() |
Return the parent aggregator.
|
void |
postCollection() |
Post-collection callback.
|
void |
preCollection() |
Pre collection callback.
|
Aggregator |
subAggregator(java.lang.String name) |
Return the sub aggregator with the provided name.
|
java.lang.String |
toString() |
descendsFromBucketAggregatorwrappublic ProfilingAggregator(Aggregator delegate, AggregationProfiler profiler) throws java.io.IOException
java.io.IOExceptionpublic void close()
public boolean needsScores()
public java.lang.String name()
Aggregatorname in class Aggregatorpublic SearchContext context()
AggregatorSearchContext attached with this Aggregator.context in class Aggregatorpublic Aggregator parent()
Aggregatorparent in class Aggregatorpublic Aggregator subAggregator(java.lang.String name)
AggregatorsubAggregator in class Aggregatorpublic InternalAggregation buildAggregation(long bucket) throws java.io.IOException
Aggregatorbucket.buildAggregation in class Aggregatorjava.io.IOExceptionpublic InternalAggregation buildEmptyAggregation()
AggregatorbuildEmptyAggregation in class Aggregatorpublic LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
getLeafCollector in interface org.apache.lucene.search.CollectorgetLeafCollector in class BucketCollectorjava.io.IOExceptionpublic void preCollection()
throws java.io.IOException
BucketCollectorpreCollection in class BucketCollectorjava.io.IOExceptionpublic void postCollection()
throws java.io.IOException
BucketCollectorpostCollection in class BucketCollectorjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object