Package org.elasticsearch.search.profile
Class Profilers
java.lang.Object
org.elasticsearch.search.profile.Profilers
public final class Profilers
extends java.lang.Object
Wrapper around all the profilers that makes management easier.
-
Constructor Summary
Constructors Constructor Description Profilers(ContextIndexSearcher searcher)Sole constructor. -
Method Summary
Modifier and Type Method Description QueryProfileraddQueryProfiler()Switch to a new profile.AggregationProfilergetAggregationProfiler()Return theAggregationProfiler.QueryProfilergetCurrentQueryProfiler()Get the current profiler.java.util.List<QueryProfiler>getQueryProfilers()Return the list of all createdQueryProfilers so far.
-
Constructor Details
-
Profilers
Sole constructor. ThisProfilersinstance will initially wrap oneQueryProfiler.
-
-
Method Details
-
addQueryProfiler
Switch to a new profile. -
getCurrentQueryProfiler
Get the current profiler. -
getQueryProfilers
Return the list of all createdQueryProfilers so far. -
getAggregationProfiler
Return theAggregationProfiler.
-