Class WrappedQuery

  • All Implemented Interfaces:
    ExtendedQuery

    public final class WrappedQuery
    extends ExtendedQueryBase
    A simple query that wraps another query and implements ExtendedQuery.
    • Constructor Detail

      • WrappedQuery

        public WrappedQuery​(org.apache.lucene.search.Query q)
    • Method Detail

      • getWrappedQuery

        public org.apache.lucene.search.Query getWrappedQuery()
      • setWrappedQuery

        public void setWrappedQuery​(org.apache.lucene.search.Query q)
      • createWeight

        public org.apache.lucene.search.Weight createWeight​(org.apache.lucene.search.IndexSearcher searcher,
                                                            org.apache.lucene.search.ScoreMode scoreMode,
                                                            float boost)
                                                     throws IOException
        Overrides:
        createWeight in class org.apache.lucene.search.Query
        Throws:
        IOException
      • rewrite

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

        public void visit​(org.apache.lucene.search.QueryVisitor visitor)
        Overrides:
        visit in class org.apache.lucene.search.Query
      • hashCode

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

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