Uses of Class
org.modeshape.graph.query.QueryContext

Packages that use QueryContext
org.modeshape.graph The ModeShape Graph API defines the types that allow you to work with content organized as a graph. 
org.modeshape.graph.query The Query API provides a mechanism for building and executing queries. 
org.modeshape.graph.query.optimize This package contains the Optimizer interface, a rule-based optimizer implementation, and library of optimization rules. 
org.modeshape.graph.query.plan This package defines the Planner interface, the CanonicalPlanner implementation, and the PlanNode class that is used to represent a canonical query plan. 
org.modeshape.graph.query.process This package defines the QueryProcessor interface, which is responsible for constructing for each query a tree of ProcessingComponent objects that each are responsible for processing a specific aspect of the query and returning the tuples to the parent component. 
org.modeshape.graph.query.validate This package provides the interfaces that define the tables and columns that can be queried. 
 

Uses of QueryContext in org.modeshape.graph
 

Subclasses of QueryContext in org.modeshape.graph
protected  class Graph.GraphQueryContext
           
 

Constructors in org.modeshape.graph with parameters of type QueryContext
Graph.AccessQueryProcessor(String graphSourceName, String workspaceName, QueryContext context, QueryResults.Columns columns, PlanNode accessNode)
           
 

Uses of QueryContext in org.modeshape.graph.query
 

Methods in org.modeshape.graph.query that return QueryContext
 QueryContext QueryContext.with(Map<String,Object> variables)
          Obtain a copy of this context, except that the copy uses the supplied variables.
 QueryContext QueryContext.with(PlanHints hints)
          Obtain a copy of this context, except that the copy uses the supplied hints.
 QueryContext QueryContext.with(Problems problems)
          Obtain a copy of this context, except that the copy uses the supplied problem container.
 QueryContext QueryContext.with(Schemata schemata)
          Obtain a copy of this context, except that the copy uses the supplied schemata.
 QueryContext QueryContext.with(TypeSystem typeSystem)
          Obtain a copy of this context, except that the copy uses the supplied type system.
 

Methods in org.modeshape.graph.query with parameters of type QueryContext
 QueryResults QueryEngine.execute(QueryContext context, QueryCommand query)
          Execute the supplied query by planning, optimizing, and then processing it.
 QueryResults Queryable.execute(QueryContext context, QueryCommand query)
          Execute the supplied query by planning, optimizing, and then processing it.
 

Constructors in org.modeshape.graph.query with parameters of type QueryContext
QueryContext(QueryContext original)
          Create a new context that is a copy of the supplied context.
 

Uses of QueryContext in org.modeshape.graph.query.optimize
 

Methods in org.modeshape.graph.query.optimize with parameters of type QueryContext
protected  int RewriteAsRangeCriteria.compareStaticOperands(QueryContext context, Comparison comparison1, Comparison comparison2)
          Compare the values used in the two comparisons
protected  PlanNode RaiseSelectCriteria.copySelectNode(QueryContext context, PlanNode selectNode, SelectorName selectorName, String propertyName, SelectorName copySelectorName, String copyPropertyName)
           
protected  PlanNode CopyCriteria.copySelectNode(QueryContext context, PlanNode selectNode, SelectorName selectorName, String propertyName, SelectorName copySelectorName, String copyPropertyName)
           
protected  void CopyCriteria.copySelectNodes(QueryContext context, PlanNode fromJoined, PlanNode toJoined)
           
 PlanNode RightOuterToLeftOuterJoins.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode RewriteIdentityJoins.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode RewriteAsRangeCriteria.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode ReplaceViews.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode ReplaceAliases.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode RemoveEmptyAccessNodes.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode RaiseSelectCriteria.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode PushSelectCriteria.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode PushProjects.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode OptimizerRule.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode CopyCriteria.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode ChooseJoinAlgorithm.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
 PlanNode AddAccessNodes.execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
          Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
protected  Comparison RewriteAsRangeCriteria.getComparison(QueryContext context, Comparison comparison1, Comparison comparison2, boolean smallest)
          Get the comparison with the smallest (or largest) value.
protected  Object RewriteAsRangeCriteria.getValue(QueryContext context, StaticOperand operand)
          Get the value associated with the static operand of the comparison.
 PlanNode RuleBasedOptimizer.optimize(QueryContext context, PlanNode plan)
          Optimize the supplied query plan and produce an executable processor plan.
 PlanNode Optimizer.optimize(QueryContext context, PlanNode plan)
          Optimize the supplied query plan and produce an executable processor plan.
protected  Constraint RewriteAsRangeCriteria.rewrite(QueryContext context, List<Comparison> comparisons)
          Rewrite the supplied comparisons, returning the new constraint and nulling in the supplied list those comparisons that were rewritten (and leaving those that were not rewritten)
protected  void RewriteIdentityJoins.rewriteJoinNode(QueryContext context, PlanNode joinNode, Map<SelectorName,SelectorName> rewrittenSelectors)
           
 

Uses of QueryContext in org.modeshape.graph.query.plan
 

Methods in org.modeshape.graph.query.plan with parameters of type QueryContext
protected  PlanNode CanonicalPlanner.attachCriteria(QueryContext context, PlanNode plan, Constraint constraint)
          Attach all criteria above the join nodes.
protected  PlanNode CanonicalPlanner.attachDuplicateRemoval(QueryContext context, PlanNode plan)
          Attach DUP_REMOVE node at top of tree.
protected  PlanNode CanonicalPlanner.attachLimits(QueryContext context, PlanNode plan, Limit limit)
          Attach a LIMIT node at the top of the plan tree.
protected  PlanNode CanonicalPlanner.attachProject(QueryContext context, PlanNode plan, List<Column> columns, Map<SelectorName,Schemata.Table> selectors)
          Attach a PROJECT node at the top of the plan tree.
protected  PlanNode CanonicalPlanner.attachSorting(QueryContext context, PlanNode plan, List<Ordering> orderings)
          Attach SORT node at top of tree.
protected  PlanNode CanonicalPlanner.createCanonicalPlan(QueryContext context, Query query)
          Create a canonical query plan for the given query.
protected  PlanNode CanonicalPlanner.createCanonicalPlan(QueryContext context, SetQuery query)
          Create a canonical query plan for the given set query.
 PlanNode Planner.createPlan(QueryContext context, QueryCommand query)
          Create a canonical query plan for the given command.
 PlanNode CanonicalPlanner.createPlan(QueryContext context, QueryCommand query)
          Create a canonical query plan for the given command.
protected  PlanNode CanonicalPlanner.createPlanNode(QueryContext context, Source source, Map<SelectorName,Schemata.Table> usedSelectors)
          Create a JOIN or SOURCE node that contain the source information.
static List<Column> PlanUtil.findRequiredColumns(QueryContext context, PlanNode planNode)
          Collected the minimum set of columns from the supplied table that are required by or used within the plan at the supplied node or above.
static Constraint PlanUtil.replaceReferences(QueryContext context, Constraint constraint, PlanUtil.ColumnMapping mapping, PlanNode node)
           
static Constraint PlanUtil.replaceReferencesToRemovedSource(QueryContext context, Constraint constraint, Map<SelectorName,SelectorName> rewrittenSelectors)
           
static DynamicOperand PlanUtil.replaceReferencesToRemovedSource(QueryContext context, DynamicOperand operand, Map<SelectorName,SelectorName> rewrittenSelectors)
           
static JoinCondition PlanUtil.replaceReferencesToRemovedSource(QueryContext context, JoinCondition joinCondition, Map<SelectorName,SelectorName> rewrittenSelectors)
           
static void PlanUtil.replaceReferencesToRemovedSource(QueryContext context, PlanNode planNode, Map<SelectorName,SelectorName> rewrittenSelectors)
           
static DynamicOperand PlanUtil.replaceViewReferences(QueryContext context, DynamicOperand operand, PlanUtil.ColumnMapping mapping, PlanNode node)
           
static JoinCondition PlanUtil.replaceViewReferences(QueryContext context, JoinCondition joinCondition, PlanUtil.ColumnMapping mapping, PlanNode node)
           
static void PlanUtil.replaceViewReferences(QueryContext context, PlanNode topOfViewInPlan, PlanUtil.ColumnMapping mappings)
           
protected  void CanonicalPlanner.validate(QueryContext context, QueryCommand query, Map<SelectorName,Schemata.Table> usedSelectors)
          Validate the supplied query.
 

Uses of QueryContext in org.modeshape.graph.query.process
 

Methods in org.modeshape.graph.query.process that return QueryContext
 QueryContext ProcessingComponent.getContext()
          Get the context in which this query is being executed.
 

Methods in org.modeshape.graph.query.process with parameters of type QueryContext
protected static Comparator<Object> JoinComponent.comparatorFor(QueryContext context, ProcessingComponent left, ProcessingComponent right, JoinCondition condition)
          Create a Comparable that can be used to compare the values required to evaluate the supplied join condition.
protected abstract  ProcessingComponent QueryProcessor.createAccessComponent(QueryCommand originalQuery, QueryContext context, PlanNode accessNode, QueryResults.Columns resultColumns, SelectComponent.Analyzer analyzer)
          Create the ProcessingComponent that processes a single PlanNode.Type.ACCESS branch of a query plan.
protected  SelectComponent.Analyzer QueryProcessor.createAnalyzer(QueryContext context)
          Create an SelectComponent.Analyzer implementation that should be used by the non-access ProcessingComponents that evaluate criteria.
protected  ProcessingComponent QueryProcessor.createComponent(QueryCommand originalQuery, QueryContext context, PlanNode node, QueryResults.Columns columns, SelectComponent.Analyzer analyzer)
          Method that is called to build up the ProcessingComponent objects that correspond to the optimized query plan.
protected  Comparator<Object[]> ProcessingComponent.createSortComparator(QueryContext context, QueryResults.Columns columns)
           
protected  Comparator<Object[]> SortValuesComponent.createSortComparator(QueryContext context, QueryResults.Columns columns, List<Ordering> orderings)
           
protected  Comparator<Object[]> SortValuesComponent.createSortComparator(QueryContext context, QueryResults.Columns columns, Ordering ordering)
           
 QueryResults QueryProcessor.execute(QueryContext context, QueryCommand command, QueryResults.Statistics statistics, PlanNode plan)
          Process the supplied query plan for the given command and return the results.
 QueryResults Processor.execute(QueryContext context, QueryCommand command, QueryResults.Statistics statistics, PlanNode plan)
          Process the supplied query plan for the given command and return the results.
protected  void QueryProcessor.postExecute(QueryContext context)
          A method that can be overridden when a hook is required immediately after the top-level ProcessingComponent is executed and all processing has been completed, even if there was an error.
protected  void QueryProcessor.preExecute(QueryContext context)
          A method that can be overridden when a hook is required immediately before the top-level ProcessingComponent is executed.
 

Constructors in org.modeshape.graph.query.process with parameters of type QueryContext
AbstractAccessComponent(QueryContext context, QueryResults.Columns columns, PlanNode accessNode)
           
ExceptComponent(QueryContext context, QueryResults.Columns columns, Iterable<ProcessingComponent> sources, boolean alreadySorted, boolean all)
           
IntersectComponent(QueryContext context, QueryResults.Columns columns, Iterable<ProcessingComponent> sources, boolean alreadySorted, boolean all)
           
JoinComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, JoinCondition condition, JoinType joinType)
           
MergeJoinComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, ChildNodeJoinCondition condition, JoinType joinType)
           
MergeJoinComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, EquiJoinCondition condition, JoinType joinType)
           
MergeJoinComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, SameNodeJoinCondition condition, JoinType joinType)
           
NestedLoopJoinComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, JoinCondition condition, JoinType joinType)
           
NoResultsComponent(QueryContext context, QueryResults.Columns columns)
           
ProcessingComponent(QueryContext context, QueryResults.Columns columns)
           
SetOperationComponent(QueryContext context, QueryResults.Columns columns, Iterable<ProcessingComponent> sources, boolean alreadySorted, boolean all)
           
UnionComponent(QueryContext context, QueryResults.Columns columns, Iterable<ProcessingComponent> sources, boolean alreadySorted, boolean all)
           
 

Uses of QueryContext in org.modeshape.graph.query.validate
 

Constructors in org.modeshape.graph.query.validate with parameters of type QueryContext
Validator(QueryContext context, Map<SelectorName,Schemata.Table> selectorsByName)
           
 



Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.