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 LuceneQuerywhich 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 WeightcreateWeight(Searcher searcher)Creates aWeightinstance for this query.voidextractTerms(Set<Term> terms)Queryrewrite(IndexReader reader)StringtoString(String field)Returns PredicateDerefQuery(subQuery, referenceNodeProperty, nameTest)
-
-
-
Method Detail
-
createWeight
public Weight createWeight(Searcher searcher)
Creates aWeightinstance for this query.- Overrides:
createWeightin classQuery- Parameters:
searcher- theSearcherinstance to use.- Returns:
- a
DerefWeight.
-
toString
public String toString(String field)
Returns PredicateDerefQuery(subQuery, referenceNodeProperty, nameTest)
-
extractTerms
public void extractTerms(Set<Term> terms)
- Overrides:
extractTermsin classQuery
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewritein classQuery- Throws:
IOException
-
-