Class AbstractCondition
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.AbstractCondition
-
- All Implemented Interfaces:
Condition
- Direct Known Subclasses:
AncestorNodeJoin,AncestorPathNodeJoin,ChildNodeJoin,DescendantNodeJoin,DescendantPathNodeJoin,EquiJoin,ParentNodeJoin,SameNodeJoin
public abstract class AbstractCondition extends Object implements Condition
AbstractConditionis a base class for join conditions.
-
-
Field Summary
Fields Modifier and Type Field Description protected MultiColumnQueryHitsinnerThe inner query hits.
-
Constructor Summary
Constructors Constructor Description AbstractCondition(MultiColumnQueryHits inner)Creates a new join condition with the giveninnerquery hits.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this join condition and frees resources.protected static intgetIndex(MultiColumnQueryHits source, Name selectorName)Returns the index of the selector with the givenselectorNamewithin the givensource.Name[]getInnerSelectorNames()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.core.query.lucene.join.Condition
getMatchingScoreNodes
-
-
-
-
Field Detail
-
inner
protected final MultiColumnQueryHits inner
The inner query hits.
-
-
Constructor Detail
-
AbstractCondition
public AbstractCondition(MultiColumnQueryHits inner)
Creates a new join condition with the giveninnerquery hits.- Parameters:
inner- the inner query hits.
-
-
Method Detail
-
getInnerSelectorNames
public Name[] getInnerSelectorNames()
- Specified by:
getInnerSelectorNamesin interfaceCondition- Returns:
- selector names of the inner query hits.
-
close
public void close() throws IOExceptionCloses this join condition and frees resources. Namely closes the inner query hits.- Specified by:
closein interfaceCondition- Throws:
IOException- if an error occurs while closing the inner query hits.
-
getIndex
protected static int getIndex(MultiColumnQueryHits source, Name selectorName)
Returns the index of the selector with the givenselectorNamewithin the givensource.- Parameters:
source- a source.selectorName- a selector name.- Returns:
- the index within the source or
-1if the name does not exist insource.
-
-