public class Alias extends java.lang.Object implements Streamable
Constructor and Description |
---|
Alias(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
filter()
Returns the filter associated with the alias
|
Alias |
filter(java.util.Map<java.lang.String,java.lang.Object> filter)
Associates a filter to the alias
|
Alias |
filter(QueryBuilder filterBuilder)
Associates a filter to the alias
|
Alias |
filter(java.lang.String filter)
Associates a filter to the alias
|
static Alias |
fromXContent(XContentParser parser)
Parses an alias and returns its parsed representation
|
int |
hashCode() |
java.lang.String |
indexRouting()
Returns the index routing value associated with the alias
|
Alias |
indexRouting(java.lang.String indexRouting)
Associates an index routing value to the alias
|
java.lang.String |
name()
Returns the alias name
|
static Alias |
read(StreamInput in)
Allows to read an alias from the provided input stream
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
Alias |
routing(java.lang.String routing)
Associates a routing value to the alias
|
java.lang.String |
searchRouting()
Returns the search routing value associated with the alias
|
Alias |
searchRouting(java.lang.String searchRouting)
Associates a search routing value to the alias
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public java.lang.String name()
public java.lang.String filter()
public Alias filter(java.lang.String filter)
public Alias filter(java.util.Map<java.lang.String,java.lang.Object> filter)
public Alias filter(QueryBuilder filterBuilder)
public Alias routing(java.lang.String routing)
public java.lang.String indexRouting()
public Alias indexRouting(java.lang.String indexRouting)
public java.lang.String searchRouting()
public Alias searchRouting(java.lang.String searchRouting)
public static Alias read(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public static Alias fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object