Class AliasFilter

org.elasticsearch.search.internal.AliasFilter
All Implemented Interfaces:
Writeable, Rewriteable<AliasFilter>

public final class AliasFilter extends implements Writeable, Rewriteable<AliasFilter>
Represents a QueryBuilder and a list of alias names that filters the builder is composed of.
  • Field Details

  • Constructor Details

    • AliasFilter

      public AliasFilter(QueryBuilder filter, ... aliases)
    • AliasFilter

      public AliasFilter(StreamInput input) throws
      Throws:
  • Method Details

    • rewrite

      public AliasFilter rewrite(QueryRewriteContext context) throws
      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 interface Rewriteable<AliasFilter>
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • getAliases

      public [] getAliases()
      Returns the aliases patters that are used to compose the QueryBuilder returned from getQueryBuilder()
    • getQueryBuilder

      public QueryBuilder getQueryBuilder()
      Returns the alias filter QueryBuilder or null 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