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