org.apache.jackrabbit.core.query.lucene.join
Class ChildNodeJoin

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
      extended by org.apache.jackrabbit.core.query.lucene.join.ChildNodeJoin
All Implemented Interfaces:
Condition

public class ChildNodeJoin
extends AbstractCondition

ChildNodeJoin implements a child node join condition.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
inner
 
Constructor Summary
ChildNodeJoin(MultiColumnQueryHits parent, org.apache.lucene.index.IndexReader reader, HierarchyResolver resolver, ChildNodeJoinConditionImpl condition)
          Creates a new child node join condition.
 
Method Summary
 ScoreNode[][] getMatchingScoreNodes(ScoreNode child)
          Returns the matching inner score nodes for the given outer score node sn.
 
Methods inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
close, getIndex, getInnerSelectorNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodeJoin

public ChildNodeJoin(MultiColumnQueryHits parent,
                     org.apache.lucene.index.IndexReader reader,
                     HierarchyResolver resolver,
                     ChildNodeJoinConditionImpl condition)
              throws IOException
Creates a new child node join condition.

Parameters:
parent - 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 child)
                                    throws IOException
Returns the matching inner score nodes for the given outer score node sn.

The outer query hits loop contains the child nodes.

Parameters:
child - 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.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.