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