Class ShrinkRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.ShrinkRequest
- All Implemented Interfaces:
JsonpSerializable
Allow to shrink an existing index into a new index with fewer primary shards.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShrinkRequest>
Json deserializer forShrinkRequest
static final Endpoint<ShrinkRequest,
ShrinkResponse, ErrorResponse> Endpoint "indices.shrink
". -
Method Summary
Modifier and TypeMethodDescriptionaliases()
API name:aliases
final String
index()
Required - The name of the source index to shrinkfinal Time
Specify timeout for connection to masterstatic ShrinkRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()
API name:settings
protected static void
final String
target()
Required - The name of the target index to shrink intofinal Time
timeout()
Explicit operation timeoutfinal WaitForActiveShards
Set the number of active shards to wait for on the shrunken index before the operation returns.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forShrinkRequest
-
_ENDPOINT
Endpoint "indices.shrink
".
-
-
Method Details
-
of
-
aliases
API name:aliases
-
index
Required - The name of the source index to shrinkAPI name:
index
-
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
settings
API name:settings
-
target
Required - The name of the target index to shrink intoAPI name:
target
-
timeout
Explicit operation timeoutAPI name:
timeout
-
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
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupShrinkRequestDeserializer
-