Class ParentNodeJoin
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
-
- org.apache.jackrabbit.core.query.lucene.join.ParentNodeJoin
-
- All Implemented Interfaces:
Condition
public class ParentNodeJoin extends AbstractCondition
ParentNodeJoinimplements a parent node join condition.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
inner
-
-
Constructor Summary
Constructors Constructor Description ParentNodeJoin(MultiColumnQueryHits child, IndexReader reader, HierarchyResolver resolver, ChildNodeJoinConditionImpl condition)Creates a new parent node join condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreNode[][]getMatchingScoreNodes(ScoreNode parent)Returns the matching inner score nodes for the given outer score nodesn.-
Methods inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
close, getIndex, getInnerSelectorNames
-
-
-
-
Constructor Detail
-
ParentNodeJoin
public ParentNodeJoin(MultiColumnQueryHits child, IndexReader reader, HierarchyResolver resolver, ChildNodeJoinConditionImpl condition) throws IOException
Creates a new parent node join condition.- Parameters:
child- the inner query hits.reader- the index reader.resolver- the hierarchy resolver.condition- the QOM child node join condition.- Throws:
IOException- if an error occurs while reading from the index.
-
-
Method Detail
-
getMatchingScoreNodes
public ScoreNode[][] getMatchingScoreNodes(ScoreNode parent) throws IOException
Returns the matching inner score nodes for the given outer score nodesn. The outer query hits loop contains the parent score nodes.- Parameters:
parent- the current score nodes of the outer source.- Returns:
- the matching score nodes in the inner source.
- Throws:
IOException- if an error occurs while evaluating the condition.
-
-