Class QueryEngine
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.QueryEngine
-
public class QueryEngine extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
NATIVE_SORT_SYSTEM_PROPERTY
-
Constructor Summary
Constructors Constructor Description QueryEngine(Session session, LuceneQueryFactory lqf, Map<String,Value> variables)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SortField[]
createSortFields(Ordering[] orderings, Session session)
protected QueryResult
execute(Column[] columns, Join join, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation)
protected QueryResult
execute(Column[] columns, Selector selector, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation)
QueryResult
execute(Column[] columns, Source source, Constraint constraint, Ordering[] orderings, long offset, long limit)
protected QueryResult
execute(Column[] columns, Source source, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation)
protected QueryResult
execute(org.apache.jackrabbit.core.query.lucene.join.JoinMerger merger, org.apache.jackrabbit.core.query.lucene.join.ConstraintSplitInfo csInfo, boolean isOuterJoin, int printIndentation)
protected static QueryResult
sort(QueryResult result, Ordering[] orderings, OperandEvaluator evaluator, long offset, long limit)
Sorts the given query results according to the given QOM orderings.
-
-
-
Field Detail
-
NATIVE_SORT_SYSTEM_PROPERTY
public static final String NATIVE_SORT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
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, Source source, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation) throws RepositoryException
- Throws:
RepositoryException
-
execute
protected QueryResult execute(Column[] columns, Join join, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation) throws RepositoryException
- Throws:
RepositoryException
-
execute
protected QueryResult execute(org.apache.jackrabbit.core.query.lucene.join.JoinMerger merger, org.apache.jackrabbit.core.query.lucene.join.ConstraintSplitInfo csInfo, boolean isOuterJoin, int printIndentation) throws RepositoryException
- Throws:
RepositoryException
-
execute
protected QueryResult execute(Column[] columns, Selector selector, Constraint constraint, Ordering[] orderings, long offset, long limit, int printIndentation) throws RepositoryException
- Throws:
RepositoryException
-
createSortFields
public SortField[] createSortFields(Ordering[] orderings, Session session) throws RepositoryException
- Throws:
RepositoryException
-
sort
protected static QueryResult sort(QueryResult result, Ordering[] orderings, OperandEvaluator evaluator, 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
-
-