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 QueryProfiler
addQueryProfiler()
Switch to a new profile.AggregationProfiler
getAggregationProfiler()
Return theAggregationProfiler
.QueryProfiler
getCurrentQueryProfiler()
Get the current profiler.java.util.List<QueryProfiler>
getQueryProfilers()
Return the list of all createdQueryProfiler
s so far.
-
-
-
Constructor Detail
-
Profilers
public Profilers(ContextIndexSearcher searcher)
Sole constructor. ThisProfilers
instance will initially wrap oneQueryProfiler
.
-
-
Method Detail
-
addQueryProfiler
public QueryProfiler addQueryProfiler()
Switch to a new profile.
-
getCurrentQueryProfiler
public QueryProfiler getCurrentQueryProfiler()
Get the current profiler.
-
getQueryProfilers
public java.util.List<QueryProfiler> getQueryProfilers()
Return the list of all createdQueryProfiler
s so far.
-
getAggregationProfiler
public AggregationProfiler getAggregationProfiler()
Return theAggregationProfiler
.
-
-