org.apache.jackrabbit.core.query.lucene.join
Class QueryEngine
java.lang.Object
org.apache.jackrabbit.core.query.lucene.join.QueryEngine
public class QueryEngine
- extends Object
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 |
QueryEngine
public QueryEngine(Session session,
LuceneQueryFactory lqf,
Map<String,Value> variables)
throws RepositoryException
- Throws:
RepositoryException
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 resultsorderings
- QOM orderingsoffset
- result offsetlimit
- 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.