org.apache.jackrabbit.core.query.lucene.join
Interface Condition

All Known Implementing Classes:
AbstractCondition, AncestorNodeJoin, AncestorPathNodeJoin, ChildNodeJoin, DescendantNodeJoin, DescendantPathNodeJoin, EquiJoin, ParentNodeJoin, SameNodeJoin

public interface Condition

Condition defines an interface for a join condition.


Method Summary
 void close()
          Closes this condition and frees resources.
 Name[] getInnerSelectorNames()
           
 ScoreNode[][] getMatchingScoreNodes(ScoreNode outer)
          Returns the matching inner score nodes for the given outer score node sn.
 

Method Detail

getMatchingScoreNodes

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.

getInnerSelectorNames

Name[] getInnerSelectorNames()
Returns:
the selector name of the inner hits.

close

void close()
           throws IOException
Closes this condition and frees resources.

Throws:
IOException - if an error occurs while closing this condition.


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