Package org.apache.lucene.search.join
Class ParentChildrenBlockJoinQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.join.ParentChildrenBlockJoinQuery
public class ParentChildrenBlockJoinQuery
extends org.apache.lucene.search.Query
A query that returns all the matching child documents for a specific parent document indexed
together in the same block. The provided child query determines which matching child doc is being
returned.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionParentChildrenBlockJoinQuery(BitSetProducer parentFilter, org.apache.lucene.search.Query childQuery, int parentDocId) Creates aParentChildrenBlockJoinQueryinstance -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) booleaninthashCode()org.apache.lucene.search.Queryrewrite(org.apache.lucene.index.IndexReader reader) voidvisit(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
ParentChildrenBlockJoinQuery
public ParentChildrenBlockJoinQuery(BitSetProducer parentFilter, org.apache.lucene.search.Query childQuery, int parentDocId) Creates aParentChildrenBlockJoinQueryinstance- Parameters:
parentFilter- A filter identifying parent documents.childQuery- A child query that determines which child docs are matchingparentDocId- The top level doc id of that parent to return children documents for
-
-
Method Details
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Specified by:
visitin classorg.apache.lucene.search.Query
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException - Overrides:
rewritein classorg.apache.lucene.search.Query- Throws:
IOException
-
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:
createWeightin classorg.apache.lucene.search.Query- Throws:
IOException
-