Class QueryExplanation
java.lang.Object
org.elasticsearch.action.admin.indices.validate.query.QueryExplanation
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic intstatic Stringstatic StringFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionQueryExplanation(String index, int shard, boolean valid, String explanation, String error) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QueryExplanationfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)getError()getIndex()intgetShard()inthashCode()booleanisValid()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
INDEX_FIELD
- See Also:
- Constant Field Values
-
SHARD_FIELD
- See Also:
- Constant Field Values
-
VALID_FIELD
- See Also:
- Constant Field Values
-
ERROR_FIELD
- See Also:
- Constant Field Values
-
EXPLANATION_FIELD
- See Also:
- Constant Field Values
-
RANDOM_SHARD
public static final int RANDOM_SHARD- See Also:
- Constant Field Values
-
-
Constructor Details
-
QueryExplanation
- Throws:
IOException
-
QueryExplanation
-
-
Method Details
-
getIndex
-
getShard
public int getShard() -
isValid
public boolean isValid() -
getError
-
getExplanation
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
fromXContent
public static QueryExplanation fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
equals
-
hashCode
public int hashCode()
-