Class AliasFilter
java.lang.Object
org.elasticsearch.search.internal.AliasFilter
- All Implemented Interfaces:
Writeable,Rewriteable<AliasFilter>
Represents a
QueryBuilder and a list of alias names that filters the builder is composed of.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS -
Constructor Summary
ConstructorsConstructorDescriptionAliasFilter(StreamInput input)AliasFilter(QueryBuilder filter, String... aliases) -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Returns the aliases patters that are used to compose theQueryBuilderreturned fromgetQueryBuilder()Returns the alias filterQueryBuilderornullif there is no such filterinthashCode()rewrite(QueryRewriteContext context)Rewrites this instance based on the provided context.toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
AliasFilter
-
AliasFilter
- Throws:
IOException
-
-
Method Details
-
rewrite
Description copied from interface:RewriteableRewrites this instance based on the provided context. The returned objects will be the same instance as this if no changes during the rewrite were applied.- Specified by:
rewritein interfaceRewriteable<AliasFilter>- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getAliases
Returns the aliases patters that are used to compose theQueryBuilderreturned fromgetQueryBuilder() -
getQueryBuilder
Returns the alias filterQueryBuilderornullif there is no such filter -
equals
-
hashCode
public int hashCode() -
toString
-