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.