Writeable, ToXContent, ToXContentFragmentpublic final class SearchProfileShardResults extends java.lang.Object implements Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROFILE_FIELD |
EMPTY_PARAMS| Constructor | Description |
|---|---|
SearchProfileShardResults(java.util.Map<java.lang.String,ProfileShardResult> shardResults) |
|
SearchProfileShardResults(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
static ProfileShardResult |
buildShardResults(Profilers profilers) |
Helper method to convert Profiler into InternalProfileShardResults, which
can be serialized to other nodes, emitted as JSON, etc.
|
static SearchProfileShardResults |
fromXContent(XContentParser parser) |
|
java.util.Map<java.lang.String,ProfileShardResult> |
getShardResults() |
|
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 static final java.lang.String PROFILE_FIELD
public SearchProfileShardResults(java.util.Map<java.lang.String,ProfileShardResult> shardResults)
public SearchProfileShardResults(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,ProfileShardResult> getShardResults()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static SearchProfileShardResults fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic static ProfileShardResult buildShardResults(Profilers profilers)
profilers - The Profilers to convert into resultsProfileShardResult representing the results for this
shard