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

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

public class EquiJoin
extends AbstractCondition

EquiJoin implements an equi join condition.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
inner
 
Constructor Summary
EquiJoin(MultiColumnQueryHits inner, int innerScoreNodeIndex, NamespaceMappings nsMappings, org.apache.lucene.index.IndexReader reader, Name innerProperty, Name outerProperty)
          Creates a new equi join condition.
 
Method Summary
 ScoreNode[][] getMatchingScoreNodes(ScoreNode outer)
          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

EquiJoin

public EquiJoin(MultiColumnQueryHits inner,
                int innerScoreNodeIndex,
                NamespaceMappings nsMappings,
                org.apache.lucene.index.IndexReader reader,
                Name innerProperty,
                Name outerProperty)
         throws IOException,
                IllegalNameException
Creates a new equi join condition.

Parameters:
inner - the inner query hits.
innerScoreNodeIndex - the selector name for the inner query hits.
scs - the sort comparator source.
reader - the index reader.
innerProperty - the name of the property of the inner query hits.
outerProperty - the name of the property of the outer query hits.
Throws:
IOException - if an error occurs while reading from the index.
IllegalNameException
Method Detail

getMatchingScoreNodes

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

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