Class Alias
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
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
o)
filter()
Returns the filter associated with the aliasfilter)
Associates a filter to the alias<,> filter)
Associates 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)
Associates an index routing value to the aliasisHidden()
isHidden)
Sets whether this alias is hiddenname()
Returns the alias namename)
Modify the alias name onlyrouting)
Associates a routing value to the aliasReturns the search routing value associated with the aliassearchRouting)
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)
Sets whether an alias is pointing to a write-indexvoid
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , ,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Alias
- Throws:
-
Alias
public Alias( name)
-
-
Method Details
-
name
public name()Returns the alias name -
name
public name)Modify the alias name only -
filter
public filter()Returns the filter associated with the alias -
filter
public filter)Associates a filter to the alias -
filter
public <,> filter)Associates a filter to the alias -
filter
Associates a filter to the alias -
routing
public routing)Associates a routing value to the alias -
indexRouting
public indexRouting()Returns the index routing value associated with the alias -
indexRouting
public indexRouting)Associates an index routing value to the alias -
searchRouting
public searchRouting()Returns the search routing value associated with the alias -
searchRouting
public searchRouting)Associates a search routing value to the alias -
writeIndex
public writeIndex()- Returns:
- the write index flag for the alias
-
writeIndex
Sets whether an alias is pointing to a write-index -
isHidden
public 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. -
fromXContent
Parses an alias and returns its parsed representation- Throws:
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
-
toString
public toString()- Overrides:
in class
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-