Class IndicesAliasesRequest.AliasActions
java.lang.Object
org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest.AliasActions
- All Implemented Interfaces:
AliasesRequest,IndicesRequest,IndicesRequest.Replaceable,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
- Enclosing class:
- IndicesAliasesRequest
public static class IndicesAliasesRequest.AliasActions
extends Object
implements AliasesRequest, Writeable, org.elasticsearch.common.xcontent.ToXContentObject
Request to take one or more actions on one or more indexes and alias combinations.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<IndicesAliasesRequest.AliasActions,Void>Parser for any oneAliasAction.Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRead from a stream. -
Method Summary
Modifier and TypeMethodDescriptionType of the action to perform.add()Build a newAliasActionto add aliases.Set the alias this action is operating on.String[]aliases()Returns the array of aliases that the action relates toAliases to use with this action.booleanbooleanReturns true if wildcards expressions among aliases should be resolved, false otherwisefilter()filter(QueryBuilder filter)fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)String[]Returns the aliases as they were originally requested, before any potential name resolutioninthashCode()booleanDetermines whether the request should be applied to data streams.Set the index this action is operating on.indexRouting(String indexRouting)String[]indices()Returns the array of indices that the action relates toSets the indices that the action relates to.Returns the indices options used to resolve indices.isHidden()remove()Build a newAliasActionto remove aliases.Build a newAliasActionto remove an index.voidreplaceAliases(String... aliases)Replaces current aliases with the provided aliases.routing()Set the default routing.searchRouting(String searchRouting)toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)writeIndex(Boolean writeIndex)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndicesMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<IndicesAliasesRequest.AliasActions,Void> PARSERParser for any oneAliasAction.
-
-
Constructor Details
-
AliasActions
-
AliasActions
Read from a stream.- Throws:
IOException
-
-
Method Details
-
add
Build a newAliasActionto add aliases. -
remove
Build a newAliasActionto remove aliases. -
removeIndex
Build a newAliasActionto remove an index. -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
actionType
Type of the action to perform. -
indices
Description copied from interface:IndicesRequest.ReplaceableSets the indices that the action relates to.- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-
index
Set the index this action is operating on. -
aliases
Aliases to use with this action. -
alias
Set the alias this action is operating on. -
routing
Set the default routing. -
searchRouting
-
searchRouting
-
routing
-
indexRouting
-
indexRouting
-
filter
-
filter
-
filter
-
filter
-
writeIndex
-
writeIndex
-
isHidden
-
isHidden
-
mustExist
-
mustExist
-
aliases
Description copied from interface:AliasesRequestReturns the array of aliases that the action relates to- Specified by:
aliasesin interfaceAliasesRequest
-
replaceAliases
Description copied from interface:AliasesRequestReplaces current aliases with the provided aliases. Sometimes aliases expressions need to be resolved to concrete aliases prior to executing the transport action.- Specified by:
replaceAliasesin interfaceAliasesRequest
-
getOriginalAliases
Description copied from interface:AliasesRequestReturns the aliases as they were originally requested, before any potential name resolution- Specified by:
getOriginalAliasesin interfaceAliasesRequest
-
expandAliasesWildcards
public boolean expandAliasesWildcards()Description copied from interface:AliasesRequestReturns true if wildcards expressions among aliases should be resolved, false otherwise- Specified by:
expandAliasesWildcardsin interfaceAliasesRequest
-
indices
Description copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
indicesin interfaceIndicesRequest
-
includeDataStreams
public boolean includeDataStreams()Description copied from interface:IndicesRequestDetermines whether the request should be applied to data streams. Whenfalse, none of the names or wildcard expressions inIndicesRequest.indices()should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.- Specified by:
includeDataStreamsin interfaceIndicesRequest
-
indicesOptions
Description copied from interface:IndicesRequestReturns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptionsin interfaceIndicesRequest
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
fromXContent
public static IndicesAliasesRequest.AliasActions fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-