Streamable, Writeable, ToXContent, ToXContentObjectpublic class ValidateQueryResponse extends BroadcastResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTransportResponse.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ERROR_FIELD |
|
static java.lang.String |
EXPLANATION_FIELD |
|
static java.lang.String |
EXPLANATIONS_FIELD |
|
static java.lang.String |
INDEX_FIELD |
|
static java.lang.String |
SHARD_FIELD |
|
static java.lang.String |
VALID_FIELD |
EMPTYEMPTY_PARAMS| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addCustomXContentFields(XContentBuilder builder,
ToXContent.Params params) |
Override in subclass to add custom fields following the common `_shards` field
|
java.util.List<? extends QueryExplanation> |
getQueryExplanation() |
The list of query explanations.
|
boolean |
isValid() |
A boolean denoting whether the query is valid.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
declareBroadcastFields, getFailedShards, getShardFailures, getStatus, getSuccessfulShards, getTotalShards, toXContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentremoteAddress, remoteAddresspublic static final java.lang.String INDEX_FIELD
public static final java.lang.String SHARD_FIELD
public static final java.lang.String VALID_FIELD
public static final java.lang.String EXPLANATIONS_FIELD
public static final java.lang.String ERROR_FIELD
public static final java.lang.String EXPLANATION_FIELD
public boolean isValid()
public java.util.List<? extends QueryExplanation> getQueryExplanation()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BroadcastResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class BroadcastResponsejava.io.IOExceptionprotected void addCustomXContentFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
BroadcastResponseaddCustomXContentFields in class BroadcastResponsejava.io.IOException