Class AliasMetaData
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<AliasMetaData>
org.elasticsearch.cluster.metadata.AliasMetaData
- All Implemented Interfaces:
Diffable<AliasMetaData>
,Writeable
,ToXContent
,ToXContentFragment
public class AliasMetaData extends AbstractDiffable<AliasMetaData> implements ToXContentFragment
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AliasMetaData.Builder
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AliasMetaData(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.lang.String
alias()
static AliasMetaData.Builder
builder(java.lang.String alias)
boolean
equals(java.lang.Object o)
CompressedXContent
filter()
boolean
filteringRequired()
java.lang.String
getAlias()
CompressedXContent
getFilter()
java.lang.String
getIndexRouting()
java.lang.String
getSearchRouting()
int
hashCode()
java.lang.String
indexRouting()
static AliasMetaData
newAliasMetaData(AliasMetaData aliasMetaData, java.lang.String newAlias)
Creates a new AliasMetaData instance with same content as the given one, but with a different alias namestatic AliasMetaData.Builder
newAliasMetaDataBuilder(java.lang.String alias)
static Diff<AliasMetaData>
readDiffFrom(StreamInput in)
java.lang.String
searchRouting()
java.util.Set<java.lang.String>
searchRoutingValues()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
java.lang.Boolean
writeIndex()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
AliasMetaData
- Throws:
java.io.IOException
-
-
Method Details
-
alias
public java.lang.String alias() -
getAlias
public java.lang.String getAlias() -
filter
-
getFilter
-
filteringRequired
public boolean filteringRequired() -
getSearchRouting
public java.lang.String getSearchRouting() -
searchRouting
public java.lang.String searchRouting() -
getIndexRouting
public java.lang.String getIndexRouting() -
indexRouting
public java.lang.String indexRouting() -
searchRoutingValues
public java.util.Set<java.lang.String> searchRoutingValues() -
writeIndex
public java.lang.Boolean writeIndex() -
builder
-
newAliasMetaDataBuilder
-
newAliasMetaData
public static AliasMetaData newAliasMetaData(AliasMetaData aliasMetaData, java.lang.String newAlias)Creates a new AliasMetaData instance with same content as the given one, but with a different alias name -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
readDiffFrom
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-