org.apache.jackrabbit.core.query.lucene.join
Class QueryEngine

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.join.QueryEngine

public class QueryEngine
extends Object


Constructor Summary
QueryEngine(Session session, LuceneQueryFactory lqf, Map<String,Value> variables)
           
 
Method Summary
protected  QueryResult execute(Column[] columns, Join join, Constraint constraint, Ordering[] orderings, long offset, long limit)
           
protected  QueryResult execute(Column[] columns, Selector selector, Constraint constraint, Ordering[] orderings, long offset, long limit)
           
 QueryResult execute(Column[] columns, Source source, Constraint constraint, Ordering[] orderings, long offset, long limit)
           
 QueryResult sort(QueryResult result, Ordering[] orderings, long offset, long limit)
          Sorts the given query results according to the given QOM orderings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngine

public QueryEngine(Session session,
                   LuceneQueryFactory lqf,
                   Map<String,Value> variables)
            throws RepositoryException
Throws:
RepositoryException
Method Detail

execute

public QueryResult execute(Column[] columns,
                           Source source,
                           Constraint constraint,
                           Ordering[] orderings,
                           long offset,
                           long limit)
                    throws RepositoryException
Throws:
RepositoryException

execute

protected QueryResult execute(Column[] columns,
                              Join join,
                              Constraint constraint,
                              Ordering[] orderings,
                              long offset,
                              long limit)
                       throws RepositoryException
Throws:
RepositoryException

execute

protected QueryResult execute(Column[] columns,
                              Selector selector,
                              Constraint constraint,
                              Ordering[] orderings,
                              long offset,
                              long limit)
                       throws RepositoryException
Throws:
RepositoryException

sort

public QueryResult sort(QueryResult result,
                        Ordering[] orderings,
                        long offset,
                        long limit)
                 throws RepositoryException
Sorts the given query results according to the given QOM orderings. If one or more orderings have been specified, this method will iterate through the entire original result set, order the collected rows, and return a new result set based on the sorted collection of rows.

Parameters:
result - original query results
orderings - QOM orderings
offset - result offset
limit - result limit
Returns:
sorted query results
Throws:
RepositoryException - if the results can not be sorted


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.