Class ShardSearchFailure
java.lang.Object
org.opensearch.client.opensearch._types.ShardSearchFailure
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardSearchFailure.Builder,ShardSearchFailure>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardSearchFailure
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardSearchFailure.Builder,ShardSearchFailure>
Represents a failure to search on a specific shard. Used in search responses.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardSearchFailure> Json deserializer forShardSearchFailure -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardSearchFailure.Builderbuilder()booleaninthashCode()final Stringindex()The index name where the failure occurred.final Stringnode()The node id where the failure occurred.static ShardSearchFailurefinal ErrorCausereason()Required - API name:reasonvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intshard()Required - The shard id where the failure occurred.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forShardSearchFailure
-
-
Method Details
-
of
public static ShardSearchFailure of(Function<ShardSearchFailure.Builder, ObjectBuilder<ShardSearchFailure>> fn) -
index
The index name where the failure occurred.API name:
index -
node
The node id where the failure occurred.API name:
node -
reason
Required - API name:reason -
shard
public final int shard()Required - The shard id where the failure occurred.API name:
shard -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ShardSearchFailure.Builder,ShardSearchFailure> - Returns:
- a new builder instance.
-
builder
-
setupShardSearchFailureDeserializer
protected static void setupShardSearchFailureDeserializer(ObjectDeserializer<ShardSearchFailure.Builder> op) -
hashCode
public int hashCode() -
equals
-