public class QueryExplanation extends java.lang.Object implements Streamable
| Modifier and Type | Field and Description |
|---|---|
static int |
RANDOM_SHARD |
| Constructor and Description |
|---|
QueryExplanation(java.lang.String index,
int shard,
boolean valid,
java.lang.String explanation,
java.lang.String error) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getError() |
java.lang.String |
getExplanation() |
java.lang.String |
getIndex() |
int |
getShard() |
boolean |
isValid() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static QueryExplanation |
readQueryExplanation(StreamInput in) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public static final int RANDOM_SHARD
public QueryExplanation(java.lang.String index,
int shard,
boolean valid,
java.lang.String explanation,
java.lang.String error)
public java.lang.String getIndex()
public int getShard()
public boolean isValid()
public java.lang.String getError()
public java.lang.String getExplanation()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic static QueryExplanation readQueryExplanation(StreamInput in) throws java.io.IOException
java.io.IOException