Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.search
Class ProfilerCollectorResult
- java.lang.Object
-
- org.apache.lucene.sandbox.search.ProfilerCollectorResult
-
public class ProfilerCollectorResult extends java.lang.Object
Public class for profiled timings of the Collectors used in the search. Children CollectorResult's may be embedded inside of a parent CollectorResult
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ProfilerCollectorResult>
children
A list of children collectors "embedded" inside this collectorprivate java.lang.String
collectorName
A more friendly representation of the Collector's class nameprivate java.lang.String
reason
A "hint" to help provide some context about this Collectorprivate long
time
The total elapsed time for this Collector
-
Constructor Summary
Constructors Constructor Description ProfilerCollectorResult(java.lang.String collectorName, java.lang.String reason, java.lang.Long time, java.util.List<ProfilerCollectorResult> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.util.List<ProfilerCollectorResult>
getProfiledChildren()
java.lang.String
getReason()
long
getTime()
-
-
-
Field Detail
-
collectorName
private final java.lang.String collectorName
A more friendly representation of the Collector's class name
-
reason
private final java.lang.String reason
A "hint" to help provide some context about this Collector
-
time
private final long time
The total elapsed time for this Collector
-
children
private final java.util.List<ProfilerCollectorResult> children
A list of children collectors "embedded" inside this collector
-
-
Constructor Detail
-
ProfilerCollectorResult
public ProfilerCollectorResult(java.lang.String collectorName, java.lang.String reason, java.lang.Long time, java.util.List<ProfilerCollectorResult> children)
-
-
Method Detail
-
getTime
public long getTime()
- Returns:
- the profiled time for this collector (inclusive of children)
-
getReason
public java.lang.String getReason()
- Returns:
- a human readable "hint" about what this collector was used for
-
getName
public java.lang.String getName()
- Returns:
- the lucene class name of the collector
-
getProfiledChildren
public java.util.List<ProfilerCollectorResult> getProfiledChildren()
- Returns:
- a list of children collectors
-
-