Package org.elasticsearch.search.profile
Class AbstractProfiler<PB extends AbstractProfileBreakdown<?>,E>
java.lang.Object
org.elasticsearch.search.profile.AbstractProfiler<PB,E>
- Direct Known Subclasses:
AggregationProfiler
,QueryProfiler
public class AbstractProfiler<PB extends AbstractProfileBreakdown<?>,E>
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected AbstractInternalProfileTree<PB,E>
profileTree
-
Constructor Summary
Constructors Constructor Description AbstractProfiler(AbstractInternalProfileTree<PB,E> profileTree)
-
Method Summary
Modifier and Type Method Description PB
getQueryBreakdown(E query)
Get theAbstractProfileBreakdown
for the given element in the tree, potentially creating it if it did not exist.java.util.List<ProfileResult>
getTree()
void
pollLastElement()
Removes the last (e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
profileTree
-
-
Constructor Details
-
AbstractProfiler
-
-
Method Details
-
getQueryBreakdown
Get theAbstractProfileBreakdown
for the given element in the tree, potentially creating it if it did not exist. -
pollLastElement
public void pollLastElement()Removes the last (e.g. most recent) element on the stack. -
getTree
- Returns:
- a hierarchical representation of the profiled tree
-