org.jboss.dna.graph.query.process
Class QueryProcessor
java.lang.Object
org.jboss.dna.graph.query.process.QueryProcessor
- All Implemented Interfaces:
- Processor
public abstract class QueryProcessor
- extends Object
- implements Processor
An abstract Processor
implementation that builds a tree of ProcessingComponent
objects to perform the different
parts of the query processing logic. Subclasses are required to only implement one method: the
#createAccessComponent(QueryCommand,QueryContext, PlanNode, Columns, Analyzer)
should create a ProcessorComponent
object that will perform the (low-level access) query described by the plan
given as a parameter.
QueryProcessor
public QueryProcessor()
execute
public QueryResults execute(QueryContext context,
QueryCommand command,
QueryResults.Statistics statistics,
PlanNode plan)
- Process the supplied query plan for the given command and return the results.
- Specified by:
execute
in interface Processor
- Parameters:
context
- the context in which the command is being processedcommand
- the command being executedstatistics
- the time metrics up until this executionplan
- the plan to be processed
- Returns:
- the results of the query
- See Also:
Processor.execute(org.jboss.dna.graph.query.QueryContext,
org.jboss.dna.graph.query.model.QueryCommand, org.jboss.dna.graph.query.QueryResults.Statistics,
org.jboss.dna.graph.query.plan.PlanNode)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.