Class ClusterIndicesShards
java.lang.Object
co.elastic.clients.elasticsearch.cluster.stats.ClusterIndicesShards
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ClusterIndicesShards extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterIndicesShards.Builder
Builder forClusterIndicesShards
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterIndicesShards>
_DESERIALIZER
Json deserializer forClusterIndicesShards
-
Constructor Summary
Constructors Constructor Description ClusterIndicesShards(ClusterIndicesShards.Builder builder)
ClusterIndicesShards(java.util.function.Function<ClusterIndicesShards.Builder,ClusterIndicesShards.Builder> fn)
-
Method Summary
Modifier and Type Method Description ClusterIndicesShardsIndex
index()
Contains statistics about shards assigned to selected nodes.java.lang.Double
primaries()
Number of primary shards assigned to selected nodes.java.lang.Double
replication()
Ratio of replica shards to primary shards across all selected nodes.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
setupClusterIndicesShardsDeserializer(DelegatingDeserializer<ClusterIndicesShards.Builder> op)
java.lang.Double
total()
Total number of shards assigned to selected nodes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forClusterIndicesShards
-
-
Constructor Details
-
ClusterIndicesShards
-
ClusterIndicesShards
public ClusterIndicesShards(java.util.function.Function<ClusterIndicesShards.Builder,ClusterIndicesShards.Builder> fn)
-
-
Method Details
-
index
Contains statistics about shards assigned to selected nodes.API name:
index
-
primaries
@Nullable public java.lang.Double primaries()Number of primary shards assigned to selected nodes.API name:
primaries
-
replication
@Nullable public java.lang.Double replication()Ratio of replica shards to primary shards across all selected nodes.API name:
replication
-
total
@Nullable public java.lang.Double total()Total number of shards assigned to selected nodes.API name:
total
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupClusterIndicesShardsDeserializer
protected static void setupClusterIndicesShardsDeserializer(DelegatingDeserializer<ClusterIndicesShards.Builder> op)
-