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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShrinkRequest>Json deserializer forShrinkRequeststatic final Endpoint<ShrinkRequest,ShrinkResponse, ErrorResponse> Endpoint "indices.shrink". -
Method Summary
Modifier and TypeMethodDescriptionaliases()API name:aliasesfinal Stringindex()Required - The name of the source index to shrinkfinal TimeSpecify timeout for connection to masterstatic ShrinkRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()API name:settingsprotected static voidfinal Stringtarget()Required - The name of the target index to shrink intofinal Timetimeout()Explicit operation timeoutfinal WaitForActiveShardsSet 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupShrinkRequestDeserializer
-