public final class ProfileResult extends java.lang.Object implements Writeable, ToXContentObject
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ProfileResult(StreamInput in)
Read from a stream.
|
ProfileResult(java.lang.String type,
java.lang.String description,
java.util.Map<java.lang.String,java.lang.Long> timings,
java.util.List<ProfileResult> children) |
Modifier and Type | Method and Description |
---|---|
static ProfileResult |
fromXContent(XContentParser parser) |
java.lang.String |
getLuceneDescription()
Retrieve the lucene description of this query (e.g.
|
java.util.List<ProfileResult> |
getProfiledChildren()
Returns a list of all profiled children queries
|
java.lang.String |
getQueryName()
Retrieve the name of the query (e.g.
|
long |
getTime()
Returns the total time (inclusive of children) for this query node.
|
java.util.Map<java.lang.String,java.lang.Long> |
getTimeBreakdown()
Returns the timing breakdown for this particular query node
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public ProfileResult(java.lang.String type, java.lang.String description, java.util.Map<java.lang.String,java.lang.Long> timings, java.util.List<ProfileResult> children)
public ProfileResult(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String getLuceneDescription()
public java.lang.String getQueryName()
public java.util.Map<java.lang.String,java.lang.Long> getTimeBreakdown()
public long getTime()
public java.util.List<ProfileResult> getProfiledChildren()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static ProfileResult fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException