public class CollectorResult extends java.lang.Object implements ToXContentObject, Writeable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REASON_AGGREGATION |
static java.lang.String |
REASON_AGGREGATION_GLOBAL |
static java.lang.String |
REASON_SEARCH_CANCELLED |
static java.lang.String |
REASON_SEARCH_COUNT |
static java.lang.String |
REASON_SEARCH_MIN_SCORE |
static java.lang.String |
REASON_SEARCH_MULTI |
static java.lang.String |
REASON_SEARCH_POST_FILTER |
static java.lang.String |
REASON_SEARCH_TERMINATE_AFTER_COUNT |
static java.lang.String |
REASON_SEARCH_TIMEOUT |
static java.lang.String |
REASON_SEARCH_TOP_HITS |
EMPTY_PARAMS
Constructor and Description |
---|
CollectorResult(StreamInput in)
Read from a stream.
|
CollectorResult(java.lang.String collectorName,
java.lang.String reason,
java.lang.Long time,
java.util.List<CollectorResult> children) |
Modifier and Type | Method and Description |
---|---|
static CollectorResult |
fromXContent(XContentParser parser) |
java.lang.String |
getName() |
java.util.List<CollectorResult> |
getProfiledChildren() |
java.lang.String |
getReason() |
long |
getTime() |
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 static final java.lang.String REASON_SEARCH_COUNT
public static final java.lang.String REASON_SEARCH_TOP_HITS
public static final java.lang.String REASON_SEARCH_TERMINATE_AFTER_COUNT
public static final java.lang.String REASON_SEARCH_POST_FILTER
public static final java.lang.String REASON_SEARCH_MIN_SCORE
public static final java.lang.String REASON_SEARCH_MULTI
public static final java.lang.String REASON_SEARCH_TIMEOUT
public static final java.lang.String REASON_SEARCH_CANCELLED
public static final java.lang.String REASON_AGGREGATION
public static final java.lang.String REASON_AGGREGATION_GLOBAL
public CollectorResult(java.lang.String collectorName, java.lang.String reason, java.lang.Long time, java.util.List<CollectorResult> children)
public CollectorResult(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public long getTime()
public java.lang.String getReason()
public java.lang.String getName()
public java.util.List<CollectorResult> getProfiledChildren()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static CollectorResult fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException