Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.search
Class ProfilerCollectorResult
java.lang.Object
org.apache.lucene.sandbox.search.ProfilerCollectorResult
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
FieldsModifier and TypeFieldDescriptionprivate final List<ProfilerCollectorResult> A list of children collectors "embedded" inside this collectorprivate final StringA more friendly representation of the Collector's class nameprivate final StringA "hint" to help provide some context about this Collectorprivate final longThe total elapsed time for this Collector -
Constructor Summary
ConstructorsConstructorDescriptionProfilerCollectorResult(String collectorName, String reason, Long time, List<ProfilerCollectorResult> children) -
Method Summary
-
Field Details
-
collectorName
A more friendly representation of the Collector's class name -
reason
A "hint" to help provide some context about this Collector -
time
private final long timeThe total elapsed time for this Collector -
children
A list of children collectors "embedded" inside this collector
-
-
Constructor Details
-
ProfilerCollectorResult
public ProfilerCollectorResult(String collectorName, String reason, Long time, List<ProfilerCollectorResult> children)
-
-
Method Details
-
getTime
public long getTime()- Returns:
- the profiled time for this collector (inclusive of children)
-
getReason
- Returns:
- a human readable "hint" about what this collector was used for
-
getName
- Returns:
- the lucene class name of the collector
-
getProfiledChildren
- Returns:
- a list of children collectors
-