org.apache.jackrabbit.core.query.lucene.join
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
AbstractCondition
is a base class for join conditions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inner
protected final MultiColumnQueryHits inner
- The inner query hits.
AbstractCondition
public AbstractCondition(MultiColumnQueryHits inner)
- Creates a new join condition with the given
inner
query
hits.
- Parameters:
inner
- the inner query hits.
getInnerSelectorNames
public Name[] getInnerSelectorNames()
- Specified by:
getInnerSelectorNames
in interface Condition
- Returns:
- selector names of the inner query hits.
close
public void close()
throws IOException
- Closes this join condition and frees resources. Namely closes the inner
query hits.
- Specified by:
close
in interface Condition
- 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 given
selectorName
within the given source
.
- Parameters:
source
- a source.selectorName
- a selector name.
- Returns:
- the index within the source or
-1
if the name does
not exist in source
.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.