org.xcmis.search.content.interceptors
Class QueryProcessorInterceptor
java.lang.Object
org.xcmis.search.content.interceptors.AbstractVisitor
org.xcmis.search.content.interceptors.CommandInterceptor
org.xcmis.search.content.interceptors.QueryProcessorInterceptor
- All Implemented Interfaces:
- Visitor, Startable
public class QueryProcessorInterceptor
- extends CommandInterceptor
A query engine that is able to execute formal queries expressed in the
Abstract Query Model.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryProcessorInterceptor
public QueryProcessorInterceptor(QueryExecutionPlaner planner,
Optimizer optimizer)
- Create a new query engine given the
planner,
optimizer, processor.
- Parameters:
planner - the planner that should be used to generate canonical query
plans for the queries;optimizer - the optimizer that should be used to optimize the canonical
query plan
- Throws:
IllegalArgumentException - if the processor reference is null
visitProcessQueryCommand
public Object visitProcessQueryCommand(InvocationContext ctx,
ProcessQueryCommand command)
throws Throwable
- Specified by:
visitProcessQueryCommand in interface Visitor- Overrides:
visitProcessQueryCommand in class AbstractVisitor
- Returns:
-
- Throws:
Throwable- See Also:
AbstractVisitor.visitProcessQueryCommand(org.xcmis.search.content.command.InvocationContext,
org.xcmis.search.content.command.query.ProcessQueryCommand)
execute
public List<ScoredRow> execute(InvocationContext ctx,
QueryExecutionContext context,
org.xcmis.search.model.Query query)
- Execute the supplied query by planning, optimizing, and then processing it.
- Parameters:
ctx - context - the context in which the query should be executedquery - the query that is to be executed
- Returns:
- the query results; never null
- Throws:
IllegalArgumentException - if the context or query references are null
Copyright © 2011 eXo Platform SAS. All Rights Reserved.