org.apache.jackrabbit.core.query.lucene
Class JoinQuery

java.lang.Object
  extended by 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.


Constructor Summary
JoinQuery(MultiColumnQuery left, MultiColumnQuery right, JoinType joinType, JoinConditionImpl joinCondition, NamespaceMappings nsMappings, HierarchyManager hmgr)
          Creates a new join query.
 
Method Summary
 MultiColumnQueryHits execute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint)
          Executes this query and returns multi column query hits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 index
hmgr - 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:
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.