Class QueryExplanation
java.lang.Object
org.elasticsearch.action.admin.indices.validate.query.QueryExplanation
- All Implemented Interfaces:
Writeable
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final int
static final String
static final String
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionQueryExplanation
(String index, int shard, boolean valid, String explanation, String error) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static QueryExplanation
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) getError()
getIndex()
int
getShard()
int
hashCode()
boolean
isValid()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) void
writeTo
(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.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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
fromXContent
-
equals
-
hashCode
public int hashCode()
-