Package org.apache.lucene.sandbox.search
Class AggregatedQueryLeafProfilerResult
java.lang.Object
org.apache.lucene.sandbox.search.AggregatedQueryLeafProfilerResult
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.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatedQueryLeafProfilerResult(Thread thread, Map<String, Long> breakdown, long startTime, long totalTime) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the start time for this query node execution.Returns the thread that executed query for these leavesReturns the timing breakdown for this node.longReturns the total time (inclusive of children) for this query node.
-
Constructor Details
-
AggregatedQueryLeafProfilerResult
-
-
Method Details
-
getThread
Returns the thread that executed query for these leaves- Returns:
- thread that executed query node
-
getTimeBreakdown
Returns the timing breakdown for this node.- Returns:
- map containing time breakdown across different operation types
-
getStartTime
public long getStartTime()Returns the start time for this query node execution.- Returns:
- start time in nanoseconds
-
getTotalTime
public long getTotalTime()Returns the total time (inclusive of children) for this query node.- Returns:
- elapsed time in nanoseconds
-