Streamable
, Writeable
, ToXContent
, ToXContentObject
public class ValidateQueryResponse extends BroadcastResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.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 |
EMPTY
EMPTY_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, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
remoteAddress, remoteAddress
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class BroadcastResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class BroadcastResponse
java.io.IOException
protected void addCustomXContentFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
BroadcastResponse
addCustomXContentFields
in class BroadcastResponse
java.io.IOException