Class ShardStatistics
- java.lang.Object
-
- org.opensearch.client.opensearch._types.ShardStatistics
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
@JsonpDeserializable public class ShardStatistics extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShardStatistics.Builder
Builder forShardStatistics
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardStatistics>
_DESERIALIZER
Json deserializer forShardStatistics
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
failed()
Required - API name:failed
java.util.List<ShardFailure>
failures()
API name:failures
static ShardStatistics
of(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> 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 void
setupShardStatisticsDeserializer(ObjectDeserializer<ShardStatistics.Builder> op)
java.lang.Number
skipped()
API name:skipped
java.lang.Number
successful()
Required - API name:successful
java.lang.Number
total()
Required - API name:total
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ShardStatistics> _DESERIALIZER
Json deserializer forShardStatistics
-
-
Method Detail
-
of
public static ShardStatistics of(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
-
failed
public final java.lang.Number failed()
Required - API name:failed
-
successful
public final java.lang.Number successful()
Required - API name:successful
-
total
public final java.lang.Number total()
Required - API name:total
-
failures
public final java.util.List<ShardFailure> failures()
API name:failures
-
skipped
@Nullable public final java.lang.Number skipped()
API name:skipped
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupShardStatisticsDeserializer
protected static void setupShardStatisticsDeserializer(ObjectDeserializer<ShardStatistics.Builder> op)
-
-