org.apache.jackrabbit.core.query.lucene.join
Class AncestorNodeJoin
java.lang.Object
org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
org.apache.jackrabbit.core.query.lucene.join.AncestorNodeJoin
- All Implemented Interfaces:
- Condition
public class AncestorNodeJoin
- extends AbstractCondition
AncestorNodeJoin
implements an ancestor node join condition.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AncestorNodeJoin
public AncestorNodeJoin(MultiColumnQueryHits context,
Name contextSelectorName,
org.apache.lucene.index.IndexReader reader,
HierarchyResolver resolver)
throws IOException
- Creates a new ancestor node join condition.
- Parameters:
context
- the inner query hits.contextSelectorName
- the selector name for the inner query hits.reader
- the index reader.resolver
- the hierarchy resolver.
- Throws:
IOException
- if an error occurs while reading from the index.
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 score 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.