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.
-
-
-
Field Detail
-
profileTree
protected final AbstractInternalProfileTree<PB extends AbstractProfileBreakdown<?>,E> profileTree
-
-
Constructor Detail
-
AbstractProfiler
public AbstractProfiler(AbstractInternalProfileTree<PB,E> profileTree)
-
-
Method Detail
-
getQueryBreakdown
public PB getQueryBreakdown(E query)
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
public java.util.List<ProfileResult> getTree()
- Returns:
- a hierarchical representation of the profiled tree
-
-