Package org.apache.solr.search
Class WrappedQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.ExtendedQueryBase
-
- org.apache.solr.search.WrappedQuery
-
- All Implemented Interfaces:
ExtendedQuery
public final class WrappedQuery extends ExtendedQueryBase
A simple query that wraps another query and implements ExtendedQuery.
-
-
Constructor Summary
Constructors Constructor Description WrappedQuery(org.apache.lucene.search.Query q)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
equals(Object obj)
org.apache.lucene.search.Query
getWrappedQuery()
int
hashCode()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
void
setWrappedQuery(org.apache.lucene.search.Query q)
String
toString(String field)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
-
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getCache, getCost, getOptions, getOptionsString, setCache, setCost
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery
-
-
-
-
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 classorg.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 classorg.apache.lucene.search.Query
- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Specified by:
visit
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
toString
public String toString(String field)
- Overrides:
toString
in classExtendedQueryBase
-
-