Class NodeShard

java.lang.Object
co.elastic.clients.elasticsearch._types.NodeShard
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public final class NodeShard
extends java.lang.Object
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • state

      public ShardRoutingState state()
      Required - API name: state
    • primary

      public boolean primary()
      Required - API name: primary
    • node

      @Nullable public java.lang.String node()
      API name: node
    • shard

      public int shard()
      Required - API name: shard
    • index

      public java.lang.String index()
      Required - API name: index
    • allocationId

      @Nullable public java.util.Map<java.lang.String,​java.lang.String> allocationId()
      API name: allocation_id
    • recoverySource

      @Nullable public java.util.Map<java.lang.String,​java.lang.String> recoverySource()
      API name: recovery_source
    • unassignedInfo

      @Nullable public UnassignedInformation unassignedInfo()
      API name: unassigned_info
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupNodeShardDeserializer

      protected static void setupNodeShardDeserializer​(DelegatingDeserializer<NodeShard.Builder> op)