Class TypeFieldMapper.TypesQuery

java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.index.mapper.TypeFieldMapper.TypesQuery
Enclosing class:
TypeFieldMapper

public static class TypeFieldMapper.TypesQuery
extends org.apache.lucene.search.Query
Specialization for a disjunction over many _type
  • Constructor Summary

    Constructors 
    Constructor Description
    TypesQuery​(org.apache.lucene.util.BytesRef... types)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    org.apache.lucene.util.BytesRef[] getTerms()  
    int hashCode()  
    org.apache.lucene.search.Query rewrite​(org.apache.lucene.index.IndexReader reader)  
    java.lang.String toString​(java.lang.String field)  

    Methods inherited from class org.apache.lucene.search.Query

    classHash, createWeight, sameClassAs, toString, visit

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TypesQuery

      public TypesQuery​(org.apache.lucene.util.BytesRef... types)
  • Method Details

    • getTerms

      public org.apache.lucene.util.BytesRef[] getTerms()
    • rewrite

      public org.apache.lucene.search.Query rewrite​(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
      Overrides:
      rewrite in class org.apache.lucene.search.Query
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object obj)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query
    • toString

      public java.lang.String toString​(java.lang.String field)
      Specified by:
      toString in class org.apache.lucene.search.Query