java.lang.Object
org.elasticsearch.search.profile.ProfileResult
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
The result of a profiled *thing*, like a query or an aggregation. See
AbstractProfiler for the statistic collection framework.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe debug information about the profiled execution.Retrieve the lucene description of this query (e.g.Returns a list of all profiled children queriesRetrieve the name of the entry (e.g.longgetTime()Returns the total time (inclusive of children) for this query node.The timing breakdown for this node.inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TYPE
-
DESCRIPTION
-
BREAKDOWN
-
DEBUG
-
NODE_TIME_RAW
-
CHILDREN
-
-
Constructor Details
-
ProfileResult
-
ProfileResult
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getLuceneDescription
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. -
getDebugInfo
The debug information about the profiled execution. -
getTime
public long getTime()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 -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-