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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
static String
static int
static String
static String
Fields inherited from interface org.elasticsearch.common.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.common.xcontent.XContentParser parser)
getError()
getIndex()
int
getShard()
int
hashCode()
boolean
isValid()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
fromXContent
public static QueryExplanation fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
equals
-
hashCode
public int hashCode()
-