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 SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionQueryExplanation(String index, int shard, boolean valid, String explanation, String error) 
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
INDEX_FIELD- See Also:
 
- 
SHARD_FIELD- See Also:
 
- 
VALID_FIELD- See Also:
 
- 
ERROR_FIELD- See Also:
 
- 
EXPLANATION_FIELD- See Also:
 
- 
RANDOM_SHARDpublic static final int RANDOM_SHARD- See Also:
 
 
- 
- 
Constructor Details- 
QueryExplanation- Throws:
- IOException
 
- 
QueryExplanation
 
- 
- 
Method Details- 
getIndex
- 
getShardpublic int getShard()
- 
isValidpublic boolean isValid()
- 
getError
- 
getExplanation
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
fromXContent
- 
equals
- 
hashCodepublic int hashCode()
 
-