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