Class ClusterIndicesShards
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.stats.ClusterIndicesShards
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ClusterIndicesShards extends java.lang.Object implements JsonpSerializable
Contains statistics about shards assigned to selected nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterIndicesShards.BuilderBuilder forClusterIndicesShards.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterIndicesShards>_DESERIALIZERJson deserializer forClusterIndicesShards
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterIndicesShardsIndexindex()Contains statistics about shards assigned to selected nodes.static ClusterIndicesShardsof(java.util.function.Function<ClusterIndicesShards.Builder,ObjectBuilder<ClusterIndicesShards>> fn)java.lang.Doubleprimaries()Number of primary shards assigned to selected nodes.java.lang.Doublereplication()Ratio of replica shards to primary shards across all selected nodes.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupClusterIndicesShardsDeserializer(ObjectDeserializer<ClusterIndicesShards.Builder> op)java.lang.Doubletotal()Total number of shards assigned to selected nodes.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ClusterIndicesShards> _DESERIALIZER
Json deserializer forClusterIndicesShards
-
-
Method Detail
-
of
public static ClusterIndicesShards of(java.util.function.Function<ClusterIndicesShards.Builder,ObjectBuilder<ClusterIndicesShards>> fn)
-
index
@Nullable public final ClusterIndicesShardsIndex index()
Contains statistics about shards assigned to selected nodes.API name:
index
-
primaries
@Nullable public final java.lang.Double primaries()
Number of primary shards assigned to selected nodes.API name:
primaries
-
replication
@Nullable public final java.lang.Double replication()
Ratio of replica shards to primary shards across all selected nodes.API name:
replication
-
total
@Nullable public final java.lang.Double total()
Total number of shards assigned to selected nodes.API name:
total
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupClusterIndicesShardsDeserializer
protected static void setupClusterIndicesShardsDeserializer(ObjectDeserializer<ClusterIndicesShards.Builder> op)
-
-