Class SplitRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.SplitRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SplitRequest extends RequestBase implements JsonpSerializable
Allows you to split an existing index into a new index with more primary
shards.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SplitRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forSplitRequest
static Endpoint<SplitRequest,SplitResponse,ErrorResponse>
_ENDPOINT
Endpoint "indices.split
". -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Alias>
aliases()
API name:aliases
java.lang.String
index()
Required - The name of the source index to splitTime
masterTimeout()
Specify timeout for connection to masterstatic SplitRequest
of(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
java.util.Map<java.lang.String,JsonData>
settings()
API name:settings
protected static void
setupSplitRequestDeserializer(ObjectDeserializer<SplitRequest.Builder> op)
java.lang.String
target()
Required - The name of the target index to split intoTime
timeout()
Explicit operation timeoutWaitForActiveShards
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSplitRequest
-
_ENDPOINT
Endpoint "indices.split
".
-
-
Method Details
-
of
public static SplitRequest of(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn) -
aliases
API name:aliases
-
index
public final java.lang.String index()Required - The name of the source index to splitAPI name:
index
-
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
settings
API name:settings
-
target
public final java.lang.String target()Required - The name of the target index to split 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
-
setupSplitRequestDeserializer
-