Class CreateIndexClusterStateUpdateRequest
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
ConstructorDescriptioncause, index, providedName)
-
Method Summary
Modifier and TypeMethodDescription<Alias>
aliases()
<Alias> aliases)
blocks()
cause()
boolean
copySettings(boolean copySettings)
Returns the name of the data stream this new index will be part of.dataStreamName)
long
The instant at which the name provided by the user was resolvedThe name that was provided by the user.index()
<,>
mappings()
<,> 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
Methods inherited from class java.lang.
, , , , , , , , ,
-
Constructor Details
-
CreateIndexClusterStateUpdateRequest
public CreateIndexClusterStateUpdateRequest( cause, index, providedName)
-
-
Method Details
-
settings
-
mappings
public <,> mappings) -
aliases
public <Alias> 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
public cause() -
index
public index() -
settings
-
mappings
public <,> mappings() -
aliases
-
blocks
-
recoverFrom
-
systemDataStreamDescriptor
-
getProvidedName
public 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
public 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
public dataStreamName) -
toString
public toString()- Overrides:
in class
-