Class PredicateDerefQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.jackrabbit.core.query.lucene.PredicateDerefQuery
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PredicateDerefQuery extends Query
Implements a LuceneQuery
which returns the nodes which have a reference property which matches the nodes of the subquery.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Weight
createWeight(Searcher searcher)
Creates aWeight
instance for this query.void
extractTerms(Set<Term> terms)
Query
rewrite(IndexReader reader)
String
toString(String field)
Returns PredicateDerefQuery(subQuery, referenceNodeProperty, nameTest)
-
-
-
Method Detail
-
createWeight
public Weight createWeight(Searcher searcher)
Creates aWeight
instance for this query.- Overrides:
createWeight
in classQuery
- Parameters:
searcher
- theSearcher
instance to use.- Returns:
- a
DerefWeight
.
-
toString
public String toString(String field)
Returns PredicateDerefQuery(subQuery, referenceNodeProperty, nameTest)
-
extractTerms
public void extractTerms(Set<Term> terms)
- Overrides:
extractTerms
in classQuery
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
-