org.apache.jackrabbit.core.query.lucene
Class JoinQuery
java.lang.Object
org.apache.jackrabbit.core.query.lucene.JoinQuery
- All Implemented Interfaces:
- MultiColumnQuery
public class JoinQuery
- extends Object
- implements MultiColumnQuery
JoinQuery implements a query that performs a join.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoinQuery
public JoinQuery(MultiColumnQuery left,
MultiColumnQuery right,
JoinType joinType,
JoinConditionImpl joinCondition,
org.apache.lucene.search.SortComparatorSource scs,
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.scs - the sort comparator source of the index.hmgr - the hierarchy manager of the workspace.
execute
public MultiColumnQueryHits execute(JackrabbitIndexSearcher searcher,
Ordering[] orderings,
long resultFetchHint)
throws IOException
- Executes this query and returns multi column query hits.
- Specified by:
execute in interface MultiColumnQuery
- 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.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.