public class Alias extends Object implements Streamable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
filter()
Returns the filter associated with the alias
|
Alias |
filter(Map<String,Object> filter)
Associates a filter to the alias
|
Alias |
filter(QueryBuilder filterBuilder)
Associates a filter to the alias
|
Alias |
filter(String filter)
Associates a filter to the alias
|
static Alias |
fromXContent(XContentParser parser)
Parses an alias and returns its parsed representation
|
int |
hashCode() |
String |
indexRouting()
Returns the index routing value associated with the alias
|
Alias |
indexRouting(String indexRouting)
Associates an index routing value to the alias
|
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) |
Alias |
routing(String routing)
Associates a routing value to the alias
|
String |
searchRouting()
Returns the search routing value associated with the alias
|
Alias |
searchRouting(String searchRouting)
Associates a search routing value to the alias
|
void |
writeTo(StreamOutput out) |
public Alias(String name)
public String name()
public String filter()
public Alias filter(QueryBuilder filterBuilder)
public String indexRouting()
public Alias indexRouting(String indexRouting)
public String searchRouting()
public Alias searchRouting(String searchRouting)
public static Alias read(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public static Alias fromXContent(XContentParser parser) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.