Writeable, ToXContent, ToXContentObjectpublic final class ProfileResult extends java.lang.Object implements Writeable, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Constructor | Description |
|---|---|
ProfileResult(java.lang.String type,
java.lang.String description,
java.util.Map<java.lang.String,java.lang.Long> timings,
java.util.List<ProfileResult> children) |
|
ProfileResult(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | 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, waitisFragmentpublic 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.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic 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 ToXContentjava.io.IOExceptionpublic static ProfileResult fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException