org.jboss.dna.graph.query.process
Class QueryProcessor

java.lang.Object
  extended by 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.


Constructor Summary
QueryProcessor()
           
 
Method Summary
 QueryResults execute(QueryContext context, QueryCommand command, QueryResults.Statistics statistics, PlanNode plan)
          Process the supplied query plan for the given command and return the results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProcessor

public QueryProcessor()
Method Detail

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 processed
command - the command being executed
statistics - the time metrics up until this execution
plan - 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.