Package org.apache.lucene.sandbox.search
Class QueryProfilerResult
java.lang.Object
org.apache.lucene.sandbox.search.QueryProfilerResult
This class is the internal representation of a profiled Query, corresponding to a single node in
the query tree. It is built after the query has finished executing and is merely a structured
representation, rather than the entity that collects the timing profile.
Each QueryProfilerResult has a List of QueryProfilerResult, which will contain "children" queries if applicable
-
Constructor Summary
ConstructorDescriptionQueryProfilerResult
(String type, String description, Map<String, Long> breakdown, long totalTime, List<QueryProfilerResult> children) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the lucene description of this query (e.g.Returns a list of all profiled children queriesRetrieve the name of the entry (e.g.The timing breakdown for this node.long
Returns the total time (inclusive of children) for this query node.
-
Constructor Details
-
QueryProfilerResult
-
-
Method Details
-
getDescription
Retrieve the lucene description of this query (e.g. the "explain" text) -
getQueryName
Retrieve the name of the entry (e.g. "TermQuery" or "LongTermsAggregator") -
getTimeBreakdown
The timing breakdown for this node. -
getTotalTime
public long getTotalTime()Returns the total time (inclusive of children) for this query node.- Returns:
- elapsed time in nanoseconds
-
getProfiledChildren
Returns a list of all profiled children queries
-