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 PBgetQueryBreakdown(E query)Get theAbstractProfileBreakdownfor the given element in the tree, potentially creating it if it did not exist.java.util.List<ProfileResult>getTree()voidpollLastElement()Removes the last (e.g.
-
Field Details
-
Constructor Details
-
Method Details
-
getQueryBreakdown
Get theAbstractProfileBreakdownfor 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
-