Class Alias
java.lang.Object
org.elasticsearch.action.admin.indices.alias.Alias
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public class Alias
extends Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
Represents an alias, to be associated with an index
-
Nested Class Summary
Nested 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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
filter()
Returns the filter associated with the aliasAssociates a filter to the aliasAssociates a filter to the aliasfilter(QueryBuilder filterBuilder)
Associates a filter to the aliasstatic Alias
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Parses an alias and returns its parsed representationint
hashCode()
Returns the index routing value associated with the aliasindexRouting(String indexRouting)
Associates an index routing value to the aliasisHidden()
Sets whether this alias is hiddenname()
Returns the alias nameModify the alias name onlyAssociates a routing value to the aliasReturns the search routing value associated with the aliassearchRouting(String searchRouting)
Associates a search routing value to the aliastoString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
writeIndex(Boolean writeIndex)
Sets whether an alias is pointing to a write-indexvoid
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Alias
- Throws:
IOException
-
Alias
-
-
Method Details
-
name
Returns the alias name -
name
Modify the alias name only -
filter
Returns the filter associated with the alias -
filter
Associates a filter to the alias -
filter
Associates a filter to the alias -
filter
Associates a filter to the alias -
routing
Associates a routing value to the alias -
indexRouting
Returns the index routing value associated with the alias -
indexRouting
Associates an index routing value to the alias -
searchRouting
Returns the search routing value associated with the alias -
searchRouting
Associates a search routing value to the alias -
writeIndex
- Returns:
- the write index flag for the alias
-
writeIndex
Sets whether an alias is pointing to a write-index -
isHidden
- Returns:
- whether this alias is hidden or not
-
isHidden
Sets whether this alias is hidden -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
fromXContent
public static Alias fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOExceptionParses an alias and returns its parsed representation- Throws:
IOException
-
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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-