Writeable
, ToXContent
, ToXContentObject
public final class ProfileResult extends java.lang.Object implements Writeable, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.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, 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