Module org.elasticsearch.server
Class ProfileCollectorManager<T>
java.lang.Object
org.elasticsearch.search.profile.query.ProfileCollectorManager<T>
- Type Parameters:
T- the return type of the wrapped collector manager, which the reduce method returns.
- All Implemented Interfaces:
org.apache.lucene.search.CollectorManager<InternalProfileCollector,T>
public final class ProfileCollectorManager<T>
extends Object
implements org.apache.lucene.search.CollectorManager<InternalProfileCollector,T>
A
CollectorManager that takes another CollectorManager as input and wraps all Collectors generated by it
in an InternalProfileCollector. It delegates all the profiling to the generated collectors via getCollectorTree()
and joins the different collector trees together when its reduce(java.util.Collection<org.elasticsearch.search.profile.query.InternalProfileCollector>) method is called.
Note: does not support children profile collectors.-
Constructor Summary
ConstructorsConstructorDescriptionProfileCollectorManager(org.apache.lucene.search.CollectorManager<? extends org.apache.lucene.search.Collector, T> collectorManager, String reason) -
Method Summary
-
Constructor Details
-
ProfileCollectorManager
-
-
Method Details
-
newCollector
- Specified by:
newCollectorin interfaceorg.apache.lucene.search.CollectorManager<InternalProfileCollector,T> - Throws:
IOException
-
reduce
- Specified by:
reducein interfaceorg.apache.lucene.search.CollectorManager<InternalProfileCollector,T> - Throws:
IOException
-
getCollectorTree
-