public final class ProfileShardResult extends Object implements Writeable<ProfileShardResult>, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ProfileShardResult(List<org.elasticsearch.search.profile.ProfileResult> profileResults,
long rewriteTime,
CollectorResult profileCollector) |
ProfileShardResult(StreamInput in) |
| Modifier and Type | Method and Description |
|---|---|
CollectorResult |
getCollectorResult() |
List<org.elasticsearch.search.profile.ProfileResult> |
getQueryResults() |
long |
getRewriteTime() |
ProfileShardResult |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
public ProfileShardResult(List<org.elasticsearch.search.profile.ProfileResult> profileResults, long rewriteTime, CollectorResult profileCollector)
public ProfileShardResult(StreamInput in) throws IOException
IOExceptionpublic List<org.elasticsearch.search.profile.ProfileResult> getQueryResults()
public long getRewriteTime()
public CollectorResult getCollectorResult()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic ProfileShardResult readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom in interface StreamableReader<ProfileShardResult>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo in interface Writeable<ProfileShardResult>IOExceptionCopyright © 2009–2017. All rights reserved.