Class AliasFilter
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
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
-
Constructor Summary
ConstructorDescriptionAliasFilter(StreamInput input)
AliasFilter(QueryBuilder filter, ... aliases)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
[]
Returns the aliases patters that are used to compose theQueryBuilder
returned fromgetQueryBuilder()
Returns the alias filterQueryBuilder
ornull
if there is no such filterint
hashCode()
rewrite(QueryRewriteContext context)
Rewrites this instance based on the provided context.toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , ,
-
Field Details
-
EMPTY
-
-
Constructor Details
-
AliasFilter
-
AliasFilter
- Throws:
-
-
Method Details
-
rewrite
Description copied from interface:Rewriteable
Rewrites 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:
rewrite
in interfaceRewriteable<AliasFilter>
- Throws:
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
getAliases
public [] getAliases()Returns the aliases patters that are used to compose theQueryBuilder
returned fromgetQueryBuilder()
-
getQueryBuilder
Returns the alias filterQueryBuilder
ornull
if there is no such filter -
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-
toString
public toString()- Overrides:
in class
-