Class JoinQuery
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.JoinQuery
-
- All Implemented Interfaces:
MultiColumnQuery
public class JoinQuery extends Object implements MultiColumnQuery
JoinQueryimplements a query that performs a join.
-
-
Constructor Summary
Constructors Constructor Description JoinQuery(MultiColumnQuery left, MultiColumnQuery right, JoinType joinType, JoinConditionImpl joinCondition, NamespaceMappings nsMappings, HierarchyManager hmgr)Creates a new join query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiColumnQueryHitsexecute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint)Executes this query and returns multi column query hits.
-
-
-
Constructor Detail
-
JoinQuery
public JoinQuery(MultiColumnQuery left, MultiColumnQuery right, JoinType joinType, JoinConditionImpl joinCondition, NamespaceMappings nsMappings, HierarchyManager hmgr)
Creates a new join query.- Parameters:
left- the left side of the query.right- the right side of the query.joinType- the join type.joinCondition- the join condition.nsMappings- namespace mappings of this indexhmgr- the hierarchy manager of the workspace.
-
-
Method Detail
-
execute
public MultiColumnQueryHits execute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint) throws IOException
Executes this query and returns multi column query hits.- Specified by:
executein interfaceMultiColumnQuery- Parameters:
searcher- the index searcher.orderings- the orderings.resultFetchHint- the result fetch hint.- Returns:
- the query hits.
- Throws:
IOException- if an error occurs while executing the query.
-
-