Package org.elasticsearch.search.profile
Class ProfileResult
java.lang.Object
org.elasticsearch.search.profile.ProfileResult
- All Implemented Interfaces:
- Writeable,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentObject
public final class ProfileResult
extends Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
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 (see InternalProfiler for that)
 
Each InternalProfileResult has a List of InternalProfileResults, which will contain "children" queries if applicable
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionProfileResult(String type, String description, Map<String,Long> breakdown, Map<String,Object> debug, long nodeTime, List<ProfileResult> children)ProfileResult(StreamInput in)Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProfileResultfromXContent(org.elasticsearch.common.xcontent.XContentParser p)The 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.org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
ProfileResult
- 
ProfileResultRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
getLuceneDescriptionRetrieve the lucene description of this query (e.g. the "explain" text)
- 
getQueryNameRetrieve the name of the entry (e.g. "TermQuery" or "LongTermsAggregator")
- 
getTimeBreakdownThe timing breakdown for this node.
- 
getDebugInfoThe debug information about the profiled execution.
- 
getTimepublic long getTime()Returns the total time (inclusive of children) for this query node.- Returns:
- elapsed time in nanoseconds
 
- 
getProfiledChildrenReturns a list of all profiled children queries
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
- 
fromXContentpublic static ProfileResult fromXContent(org.elasticsearch.common.xcontent.XContentParser p) throws IOException- Throws:
- IOException
 
 
-