Class QueryExplanation
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.validate.query.QueryExplanation
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class QueryExplanation extends Object implements Writeable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static StringERROR_FIELDstatic StringEXPLANATION_FIELDstatic StringINDEX_FIELDstatic intRANDOM_SHARDstatic StringSHARD_FIELDstatic StringVALID_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description QueryExplanation(String index, int shard, boolean valid, String explanation, String error)QueryExplanation(StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static QueryExplanationfromXContent(XContentParser parser)StringgetError()StringgetExplanation()StringgetIndex()intgetShard()inthashCode()booleanisValid()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
INDEX_FIELD
public static final String INDEX_FIELD
- See Also:
- Constant Field Values
-
SHARD_FIELD
public static final String SHARD_FIELD
- See Also:
- Constant Field Values
-
VALID_FIELD
public static final String VALID_FIELD
- See Also:
- Constant Field Values
-
ERROR_FIELD
public static final String ERROR_FIELD
- See Also:
- Constant Field Values
-
EXPLANATION_FIELD
public static final String EXPLANATION_FIELD
- See Also:
- Constant Field Values
-
RANDOM_SHARD
public static final int RANDOM_SHARD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryExplanation
public QueryExplanation(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getIndex
public String getIndex()
-
getShard
public int getShard()
-
isValid
public boolean isValid()
-
getError
public String getError()
-
getExplanation
public String getExplanation()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static QueryExplanation fromXContent(XContentParser parser)
-
-