Class QueryProcessor

  extended by org.jboss.dna.graph.query.process.QueryProcessor
All Implemented Interfaces:

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
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


public QueryProcessor()
Method Detail


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
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
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.