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

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

public class AncestorPathNodeJoin
extends AbstractCondition

AncestorPathNodeJoin implements an ancestor path node join condition.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
inner
 
Constructor Summary
AncestorPathNodeJoin(MultiColumnQueryHits context, Name contextSelectorName, Path relPath, HierarchyManager hmgr)
          Creates an ancestor path node join.
 
Method Summary
 ScoreNode[][] getMatchingScoreNodes(ScoreNode ancestor)
          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

AncestorPathNodeJoin

public AncestorPathNodeJoin(MultiColumnQueryHits context,
                            Name contextSelectorName,
                            Path relPath,
                            HierarchyManager hmgr)
                     throws IOException
Creates an ancestor path node join.

Parameters:
context - the inner query hits.
contextSelectorName - the selector name for the inner query hits.
relPath - the relative path of the join condition.
hmgr - the hierarchy manager of the workspace.
Throws:
IOException - if an error occurs while reading from the index.
Method Detail

getMatchingScoreNodes

public ScoreNode[][] getMatchingScoreNodes(ScoreNode ancestor)
                                    throws IOException
Returns the matching inner score nodes for the given outer score node sn.

The outer query hits loop contains the ancestor nodes.

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