Class CreateIndexClusterStateUpdateRequest
java.lang.Object
org.elasticsearch.cluster.ack.ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest>
org.elasticsearch.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
-
Constructor Summary
ConstructorDescriptionCreateIndexClusterStateUpdateRequest(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)
long
The instant at which the name provided by the user was resolvedThe name that was provided by the user.index()
mappings()
nameResolvedInstant(long nameResolvedAt)
At what point in time the provided name was resolved into the index namerecoverFrom(Index recoverFrom)
Returns the resize type or null if this is an ordinary create index requestresizeType(ResizeType resizeType)
settings()
systemDataStreamDescriptor(SystemDataStreamDescriptor systemDataStreamDescriptor)
toString()
waitForActiveShards(ActiveShardCount waitForActiveShards)
Methods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
Constructor Details
-
CreateIndexClusterStateUpdateRequest
-
-
Method Details
-
settings
-
mappings
-
aliases
-
recoverFrom
-
waitForActiveShards
public CreateIndexClusterStateUpdateRequest waitForActiveShards(ActiveShardCount waitForActiveShards) -
resizeType
-
copySettings
-
nameResolvedInstant
At what point in time the provided name was resolved into the index name -
systemDataStreamDescriptor
public CreateIndexClusterStateUpdateRequest systemDataStreamDescriptor(SystemDataStreamDescriptor systemDataStreamDescriptor) -
cause
-
index
-
settings
-
mappings
-
aliases
-
blocks
-
recoverFrom
-
systemDataStreamDescriptor
-
getProvidedName
The name that was provided by the user. This might contain a date math expression. -
getNameResolvedAt
public long getNameResolvedAt()The instant at which the name provided by the user was resolved -
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
-