public class QueryEngine extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NATIVE_SORT_SYSTEM_PROPERTY |
Constructor and Description |
---|
QueryEngine(javax.jcr.Session session,
LuceneQueryFactory lqf,
Map<String,javax.jcr.Value> variables) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.SortField[] |
createSortFields(javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.Session session) |
protected javax.jcr.query.QueryResult |
execute(javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.Join join,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
long offset,
long limit,
int printIndentation) |
protected javax.jcr.query.QueryResult |
execute(javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.Selector selector,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
long offset,
long limit,
int printIndentation) |
javax.jcr.query.QueryResult |
execute(javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
long offset,
long limit) |
protected javax.jcr.query.QueryResult |
execute(javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
long offset,
long limit,
int printIndentation) |
protected javax.jcr.query.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 javax.jcr.query.QueryResult |
sort(javax.jcr.query.QueryResult result,
javax.jcr.query.qom.Ordering[] orderings,
OperandEvaluator evaluator,
long offset,
long limit)
Sorts the given query results according to the given QOM orderings.
|
public static final String NATIVE_SORT_SYSTEM_PROPERTY
public QueryEngine(javax.jcr.Session session, LuceneQueryFactory lqf, Map<String,javax.jcr.Value> variables) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.query.QueryResult execute(javax.jcr.query.qom.Column[] columns, javax.jcr.query.qom.Source source, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, long offset, long limit) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.query.QueryResult execute(javax.jcr.query.qom.Column[] columns, javax.jcr.query.qom.Source source, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, long offset, long limit, int printIndentation) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.query.QueryResult execute(javax.jcr.query.qom.Column[] columns, javax.jcr.query.qom.Join join, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, long offset, long limit, int printIndentation) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.query.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 javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.query.QueryResult execute(javax.jcr.query.qom.Column[] columns, javax.jcr.query.qom.Selector selector, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, long offset, long limit, int printIndentation) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public org.apache.lucene.search.SortField[] createSortFields(javax.jcr.query.qom.Ordering[] orderings, javax.jcr.Session session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected static javax.jcr.query.QueryResult sort(javax.jcr.query.QueryResult result, javax.jcr.query.qom.Ordering[] orderings, OperandEvaluator evaluator, long offset, long limit) throws javax.jcr.RepositoryException
result
- original query resultsorderings
- QOM orderingsoffset
- result offsetlimit
- result limitjavax.jcr.RepositoryException
- if the results can not be sortedCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.