Class ExplainResponse<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.core.ExplainResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ExplainResponse<TDocument> extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplainResponse.Builder<TDocument>
Builder forExplainResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ExplainResponse<java.lang.Object>>
_DESERIALIZER
Json deserializer forExplainResponse
based on named deserializers provided by the callingJsonMapper
. -
Method Summary
Modifier and Type Method Description static <TDocument>
JsonpDeserializer<ExplainResponse<TDocument>>createExplainResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create a JSON deserializer for ExplainResponseExplanationDetail
explanation()
API name:explanation
InlineGet<TDocument>
get()
API name:get
java.lang.String
id()
Required - API name:_id
java.lang.String
index()
Required - API name:_index
boolean
matched()
Required - API name:matched
static <TDocument>
ExplainResponse<TDocument>of(java.util.function.Function<ExplainResponse.Builder<TDocument>,ObjectBuilder<ExplainResponse<TDocument>>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <TDocument>
voidsetupExplainResponseDeserializer(ObjectDeserializer<ExplainResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forExplainResponse
based on named deserializers provided by the callingJsonMapper
.
-
-
Method Details
-
of
public static <TDocument> ExplainResponse<TDocument> of(java.util.function.Function<ExplainResponse.Builder<TDocument>,ObjectBuilder<ExplainResponse<TDocument>>> fn) -
index
public final java.lang.String index()Required - API name:_index
-
id
public final java.lang.String id()Required - API name:_id
-
matched
public final boolean matched()Required - API name:matched
-
explanation
API name:explanation
-
get
API name:get
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
createExplainResponseDeserializer
public static <TDocument> JsonpDeserializer<ExplainResponse<TDocument>> createExplainResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a JSON deserializer for ExplainResponse -
setupExplainResponseDeserializer
protected static <TDocument> void setupExplainResponseDeserializer(ObjectDeserializer<ExplainResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-