Class CreateIndexClusterStateUpdateRequest
java.lang.Object
org.opensearch.cluster.ack.ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest>
org.opensearch.action.admin.indices.create.CreateIndexClusterStateUpdateRequest
- All Implemented Interfaces:
AckedRequest
public class CreateIndexClusterStateUpdateRequest
extends ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest>
Cluster state update request that allows to create an index
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionCreateIndexClusterStateUpdateRequest
(String cause, String index, String providedName) -
Method Summary
Modifier and TypeMethodDescriptionaliases()
blocks()
cause()
boolean
copySettings
(boolean copySettings) Returns the name of the data stream this new index will be part of.dataStreamName
(String dataStreamName) The name that was provided by the user.index()
mappings()
recoverFrom
(Index recoverFrom) Returns the resize type or null if this is an ordinary create index requestresizeType
(ResizeType resizeType) settings()
toString()
waitForActiveShards
(ActiveShardCount waitForActiveShards) Methods inherited from class org.opensearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.cluster.ack.AckedRequest
clusterManagerNodeTimeout
-
Constructor Details
-
CreateIndexClusterStateUpdateRequest
-
-
Method Details
-
settings
-
mappings
-
aliases
-
recoverFrom
-
waitForActiveShards
public CreateIndexClusterStateUpdateRequest waitForActiveShards(ActiveShardCount waitForActiveShards) -
resizeType
-
copySettings
-
cause
-
index
-
settings
-
mappings
-
aliases
-
blocks
-
recoverFrom
-
getProvidedName
The name that was provided by the user. This might contain a date math expression. -
waitForActiveShards
-
resizeType
Returns the resize type or null if this is an ordinary create index request -
copySettings
public boolean copySettings() -
dataStreamName
Returns the name of the data stream this new index will be part of. If this new index will not be part of a data stream then this returnsnull
. -
dataStreamName
-
toString
-