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 java.lang.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 Classes Modifier and Type Class Description static classIndicesAliasesRequest.AliasActions.TypeNested 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
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<IndicesAliasesRequest.AliasActions,java.lang.Void>PARSERParser for any oneAliasAction. -
Constructor Summary
Constructors Constructor Description AliasActions(IndicesAliasesRequest.AliasActions.Type type)AliasActions(StreamInput in)Read from a stream. -
Method Summary
Modifier and Type Method Description IndicesAliasesRequest.AliasActions.TypeactionType()Type of the action to perform.static IndicesAliasesRequest.AliasActionsadd()Build a newAliasActionto add aliases.IndicesAliasesRequest.AliasActionsalias(java.lang.String alias)Set the alias this action is operating on.java.lang.String[]aliases()Returns the array of aliases that the action relates toIndicesAliasesRequest.AliasActionsaliases(java.lang.String... aliases)Aliases to use with this action.booleanequals(java.lang.Object obj)booleanexpandAliasesWildcards()Returns true if wildcards expressions among aliases should be resolved, false otherwisejava.lang.Stringfilter()IndicesAliasesRequest.AliasActionsfilter(java.lang.String filter)IndicesAliasesRequest.AliasActionsfilter(java.util.Map<java.lang.String,java.lang.Object> filter)IndicesAliasesRequest.AliasActionsfilter(QueryBuilder filter)static IndicesAliasesRequest.AliasActionsfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.lang.String[]getOriginalAliases()Returns the aliases as they were originally requested, before any potential name resolutioninthashCode()IndicesAliasesRequest.AliasActionsindex(java.lang.String index)Set the index this action is operating on.java.lang.StringindexRouting()IndicesAliasesRequest.AliasActionsindexRouting(java.lang.String indexRouting)java.lang.String[]indices()Returns the array of indices that the action relates toIndicesAliasesRequest.AliasActionsindices(java.lang.String... indices)Sets the indices that the action relates to.IndicesOptionsindicesOptions()Returns the indices options used to resolve indices.java.lang.BooleanisHidden()IndicesAliasesRequest.AliasActionsisHidden(java.lang.Boolean isHidden)java.lang.BooleanmustExist()IndicesAliasesRequest.AliasActionsmustExist(java.lang.Boolean mustExist)static IndicesAliasesRequest.AliasActionsremove()Build a newAliasActionto remove aliases.static IndicesAliasesRequest.AliasActionsremoveIndex()Build a newAliasActionto remove an index.voidreplaceAliases(java.lang.String... aliases)Replaces current aliases with the provided aliases.IndicesAliasesRequest.AliasActionsrouting(java.lang.String routing)Set the default routing.java.lang.StringsearchRouting()IndicesAliasesRequest.AliasActionssearchRouting(java.lang.String searchRouting)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)java.lang.BooleanwriteIndex()IndicesAliasesRequest.AliasActionswriteIndex(java.lang.Boolean writeIndex)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<IndicesAliasesRequest.AliasActions,java.lang.Void> PARSERParser for any oneAliasAction.
-
-
Constructor Details
-
AliasActions
-
AliasActions
Read from a stream.- Throws:
java.io.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. -
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
public java.lang.String searchRouting() -
searchRouting
-
indexRouting
public java.lang.String indexRouting() -
indexRouting
-
filter
public java.lang.String filter() -
filter
-
filter
public IndicesAliasesRequest.AliasActions filter(java.util.Map<java.lang.String,java.lang.Object> filter) -
filter
-
writeIndex
-
writeIndex
public java.lang.Boolean writeIndex() -
isHidden
-
isHidden
public java.lang.Boolean isHidden() -
mustExist
-
mustExist
public java.lang.Boolean mustExist() -
aliases
public java.lang.String[] aliases()Description copied from interface:AliasesRequestReturns the array of aliases that the action relates to- Specified by:
aliasesin interfaceAliasesRequest
-
replaceAliases
public void replaceAliases(java.lang.String... aliases)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
public java.lang.String[] 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
public java.lang.String[] indices()Description copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
indicesin 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 java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
fromXContent
public static IndicesAliasesRequest.AliasActions fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-