Class SplitRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.SplitRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class SplitRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplitRequest.BuilderBuilder forSplitRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SplitRequest>_DESERIALIZERJson deserializer forSplitRequeststatic Endpoint<SplitRequest,SplitResponse,ElasticsearchError>ENDPOINTEndpoint "indices.split". -
Constructor Summary
Constructors Constructor Description SplitRequest(SplitRequest.Builder builder)SplitRequest(java.util.function.Function<SplitRequest.Builder,SplitRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Alias>aliases()API name:aliasesjava.lang.Stringindex()The name of the source index to splitjava.lang.StringmasterTimeout()Specify timeout for connection to mastervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.util.Map<java.lang.String,JsonData>settings()API name:settingsprotected static voidsetupSplitRequestDeserializer(DelegatingDeserializer<SplitRequest.Builder> op)java.lang.Stringtarget()The name of the target index to split intojava.lang.Stringtimeout()Explicit operation timeoutjakarta.json.JsonValuewaitForActiveShards()Set the number of active shards to wait for on the shrunken index before the operation returns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSplitRequest -
ENDPOINT
Endpoint "indices.split".
-
-
Constructor Details
-
SplitRequest
-
SplitRequest
-
-
Method Details
-
index
public java.lang.String index()The name of the source index to splitAPI name:
index -
target
public java.lang.String target()The name of the target index to split intoAPI name:
target -
masterTimeout
@Nullable public java.lang.String masterTimeout()Specify timeout for connection to masterAPI name:
master_timeout -
timeout
@Nullable public java.lang.String timeout()Explicit operation timeoutAPI name:
timeout -
waitForActiveShards
@Nullable public jakarta.json.JsonValue waitForActiveShards()Set the number of active shards to wait for on the shrunken index before the operation returns.API name:
wait_for_active_shards -
aliases
API name:aliases -
settings
API name:settings -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSplitRequestDeserializer
protected static void setupSplitRequestDeserializer(DelegatingDeserializer<SplitRequest.Builder> op)
-