Class ShrinkRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.ShrinkRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class ShrinkRequest
extends RequestBase
implements JsonpSerializable
Allow to shrink an existing index into a new index with fewer primary shards.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static ShrinkRequest of​(java.util.function.Function<ShrinkRequest.Builder,​ObjectBuilder<ShrinkRequest>> fn)
    • aliases

      public final java.util.Map<java.lang.String,​Alias> aliases()
      API name: aliases
    • index

      public final java.lang.String index()
      Required - The name of the source index to shrink

      API name: index

    • masterTimeout

      @Nullable public final Time masterTimeout()
      Specify timeout for connection to master

      API name: master_timeout

    • settings

      public final java.util.Map<java.lang.String,​JsonData> settings()
      API name: settings
    • target

      public final java.lang.String target()
      Required - The name of the target index to shrink into

      API name: target

    • timeout

      @Nullable public final Time timeout()
      Explicit operation timeout

      API name: timeout

    • waitForActiveShards

      @Nullable public final WaitForActiveShards waitForActiveShards()
      Set the number of active shards to wait for on the shrunken index before the operation returns.

      API name: wait_for_active_shards

    • 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)
    • setupShrinkRequestDeserializer

      protected static void setupShrinkRequestDeserializer​(ObjectDeserializer<ShrinkRequest.Builder> op)