public class CollectorResult extends Object implements ToXContent, Writeable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
REASON_AGGREGATION |
static String |
REASON_AGGREGATION_GLOBAL |
static String |
REASON_SEARCH_COUNT |
static String |
REASON_SEARCH_MIN_SCORE |
static String |
REASON_SEARCH_MULTI |
static String |
REASON_SEARCH_POST_FILTER |
static String |
REASON_SEARCH_TERMINATE_AFTER_COUNT |
static String |
REASON_SEARCH_TIMEOUT |
static String |
REASON_SEARCH_TOP_HITS |
EMPTY_PARAMS
Constructor and Description |
---|
CollectorResult(StreamInput in) |
CollectorResult(String collectorName,
String reason,
Long time,
List<CollectorResult> children) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
List<CollectorResult> |
getProfiledChildren() |
String |
getReason() |
long |
getTime() |
Object |
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 static final String REASON_SEARCH_COUNT
public static final String REASON_SEARCH_TOP_HITS
public static final String REASON_SEARCH_TERMINATE_AFTER_COUNT
public static final String REASON_SEARCH_POST_FILTER
public static final String REASON_SEARCH_MIN_SCORE
public static final String REASON_SEARCH_MULTI
public static final String REASON_SEARCH_TIMEOUT
public static final String REASON_AGGREGATION
public static final String REASON_AGGREGATION_GLOBAL
public CollectorResult(String collectorName, String reason, Long time, List<CollectorResult> children)
public CollectorResult(StreamInput in) throws IOException
IOException
public long getTime()
public String getReason()
public String getName()
public List<CollectorResult> getProfiledChildren()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void writeTo(StreamOutput out) throws IOException
Writeable
writeTo
in interface Writeable
IOException
public Object readFrom(StreamInput in) throws IOException
StreamableReader
readFrom
in interface StreamableReader
IOException
Copyright © 2009–2017. All rights reserved.