public class AliasMetaData extends AbstractDiffable<AliasMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
AliasMetaData.Builder |
Writeable.Reader<V>, Writeable.Writer<V>
Constructor and Description |
---|
AliasMetaData(StreamInput in) |
Modifier and Type | Method and 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 name
|
static AliasMetaData.Builder |
newAliasMetaDataBuilder(java.lang.String alias) |
static Diff<AliasMetaData> |
readDiffFrom(StreamInput in) |
java.lang.String |
searchRouting() |
java.util.Set<java.lang.String> |
searchRoutingValues() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
diff, get, readDiffFrom
public AliasMetaData(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String alias()
public java.lang.String getAlias()
public CompressedXContent filter()
public CompressedXContent getFilter()
public boolean filteringRequired()
public java.lang.String getSearchRouting()
public java.lang.String searchRouting()
public java.lang.String getIndexRouting()
public java.lang.String indexRouting()
public java.util.Set<java.lang.String> searchRoutingValues()
public static AliasMetaData.Builder builder(java.lang.String alias)
public static AliasMetaData.Builder newAliasMetaDataBuilder(java.lang.String alias)
public static AliasMetaData newAliasMetaData(AliasMetaData aliasMetaData, java.lang.String newAlias)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public static Diff<AliasMetaData> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOException