Uses of Interface
org.modeshape.graph.query.model.Constraint

Packages that use Constraint
org.modeshape.graph.query The Query API provides a mechanism for building and executing queries. 
org.modeshape.graph.query.model The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query. 
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.parse This package defines the QueryParser interface, which defines a component that can parse a query represented in a specific language and produce the corresponding abstract query model representation. 
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.request Sometimes its useful to work with a graph using objects that represent individual commands on the graph. 
org.modeshape.jcr.query   
org.modeshape.jcr.query.qom   
 

Uses of Constraint in org.modeshape.graph.query
 

Fields in org.modeshape.graph.query declared as Constraint
protected  Constraint QueryBuilder.constraint
           
 

Methods in org.modeshape.graph.query with parameters of type Constraint
protected  QueryBuilder.ConstraintBuilder QueryBuilder.ConstraintBuilder.setConstraint(Constraint constraint)
           
protected  QueryBuilder.ConstraintBuilder QueryBuilder.UpperCaser.setConstraint(Constraint constraint)
           
protected  QueryBuilder.ConstraintBuilder QueryBuilder.LowerCaser.setConstraint(Constraint constraint)
           
 

Uses of Constraint in org.modeshape.graph.query.model
 

Classes in org.modeshape.graph.query.model that implement Constraint
 class And
          A constraint that evaluates to true when both of the other constraints evaluate to true.
 class Between
          A constraint that evaluates to true when the value defined by the dynamic operand evaluates to be within the specified range.
 class ChildNode
          A constraint requiring that the selected node is a child of the node reachable by the supplied absolute path
 class Comparison
          A constraint that evaluates to true when the defined operation evaluates to true.
 class DescendantNode
          A constraint requiring that the selected node is a descendant of the node reachable by the supplied absolute path
 class FullTextSearch
          A constraint that evaluates to true only when a full-text search applied to the search scope results in positive findings.
 class Not
          A constraint that negates another constraint.
 class Or
          A constraint that evaluates to true when either of the other constraints evaluates to true.
 class PropertyExistence
          A constraint that evaluates to true only when a named property exists on a node.
 class SameNode
          A constraint requiring that the selected node is reachable by the supplied absolute path
 class SetCriteria
          A constraint that evaluates to true when the defined operation evaluates to true.
 

Methods in org.modeshape.graph.query.model that return Constraint
 Constraint Query.constraint()
          Get the constraints, if there are any.
 Constraint Not.constraint()
          The constraint being negated.
 Constraint Or.left()
          Get the left-hand constraint.
 Constraint And.left()
          Get the constraint that is on the left-hand-side of the AND operation.
 Constraint Or.right()
          Get the right-hand constraint.
 Constraint And.right()
          Get the constraint that is on the right-hand-side of the AND operation.
 

Methods in org.modeshape.graph.query.model with parameters of type Constraint
 Query Query.constrainedBy(Constraint constraint)
          Create a copy of this query, but one that uses the supplied constraint.
 

Constructors in org.modeshape.graph.query.model with parameters of type Constraint
And(Constraint left, Constraint right)
           
Not(Constraint constraint)
          Create a constraint that negates another constraint.
Or(Constraint left, Constraint right)
          Create a constraint that evaluates to true if either of the two supplied constraints evaluates to true.
Query(Source source, Constraint constraint, List<? extends Ordering> orderings, List<? extends Column> columns, Limit limit, boolean isDistinct)
          Create a new query that uses the supplied source, constraint, orderings, columns and limits.
 

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

Fields in org.modeshape.graph.query.optimize declared as Constraint
protected static Constraint RewriteAsRangeCriteria.CONFLICTING_CONSTRAINT
           
 

Methods in org.modeshape.graph.query.optimize that return Constraint
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)
 

Uses of Constraint in org.modeshape.graph.query.parse
 

Methods in org.modeshape.graph.query.parse that return Constraint
protected  Constraint SqlQueryParser.parseConstraint(TokenStream tokens, TypeSystem typeSystem, Source source)
           
protected  Constraint SqlQueryParser.parsePropertyExistance(TokenStream tokens, TypeSystem typeSystem, Source source)
           
protected  Constraint SqlQueryParser.parseWhere(TokenStream tokens, TypeSystem typeSystem, Source source)
           
 

Methods in org.modeshape.graph.query.parse with parameters of type Constraint
protected  And SqlQueryParser.and(Constraint constraint1, Constraint constraint2)
           
protected  Not SqlQueryParser.not(Constraint constraint)
           
protected  Or SqlQueryParser.or(Constraint constraint1, Constraint constraint2)
           
protected  Query SqlQueryParser.query(Source source, Constraint constraint, List<? extends Ordering> orderings, List<? extends Column> columns, Limit limit, boolean distinct)
           
 

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

Methods in org.modeshape.graph.query.plan that return Constraint
static Constraint PlanUtil.replaceAliasesWithProperties(QueryContext context, Constraint constraint, Map<String,String> propertyByAlias)
           
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 Constraint PlanUtil.replaceSubqueriesWithBindVariables(QueryContext context, Constraint constraint, Map<String,Subquery> subqueriesByVariableName)
           
 

Methods in org.modeshape.graph.query.plan with parameters of type Constraint
protected  PlanNode CanonicalPlanner.attachCriteria(QueryContext context, PlanNode plan, Constraint constraint, List<? extends Column> columns, Map<String,Subquery> subqueriesByVariableName)
          Attach all criteria above the join nodes.
static Constraint PlanUtil.replaceAliasesWithProperties(QueryContext context, Constraint constraint, Map<String,String> propertyByAlias)
           
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 Constraint PlanUtil.replaceSubqueriesWithBindVariables(QueryContext context, Constraint constraint, Map<String,Subquery> subqueriesByVariableName)
           
protected  void CanonicalPlanner.separateAndConstraints(Constraint constraint, List<Constraint> andableConstraints)
          Walk the supplied constraint to extract a list of the constraints that can be AND-ed together.
 

Method parameters in org.modeshape.graph.query.plan with type arguments of type Constraint
protected  void CanonicalPlanner.separateAndConstraints(Constraint constraint, List<Constraint> andableConstraints)
          Walk the supplied constraint to extract a list of the constraints that can be AND-ed together.
 

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

Fields in org.modeshape.graph.query.process with type parameters of type Constraint
protected  List<Constraint> AbstractAccessComponent.andedConstraints
           
 

Methods in org.modeshape.graph.query.process with parameters of type Constraint
protected  SelectComponent.ConstraintChecker SelectComponent.createChecker(TypeSystem types, Schemata schemata, QueryResults.Columns columns, Constraint constraint, Map<String,Object> variables, SelectComponent.Analyzer analyzer)
          Create the constraint evaluator that is used by the SelectComponent to evaluate the supplied criteria.
static boolean QueryResultColumns.includeFullTextScores(Constraint constraint)
           
 

Method parameters in org.modeshape.graph.query.process with type arguments of type Constraint
static boolean QueryResultColumns.includeFullTextScores(Iterable<Constraint> constraints)
           
 

Constructors in org.modeshape.graph.query.process with parameters of type Constraint
SelectComponent(ProcessingComponent delegate, Constraint constraint, Map<String,Object> variables)
          Create a SELECT processing component that pass those tuples that satisfy the supplied constraint.
SelectComponent(ProcessingComponent delegate, Constraint constraint, Map<String,Object> variables, SelectComponent.Analyzer analyzer)
          Create a SELECT processing component that pass those tuples that satisfy the supplied constraint, using the supplied SelectComponent.Analyzer for the verification of the more complex/arduous constraints.
 

Uses of Constraint in org.modeshape.graph.request
 

Methods in org.modeshape.graph.request that return types with arguments of type Constraint
 List<Constraint> AccessQueryRequest.andedConstraints()
          Get the immutable list of constraints that are AND-ed together in this query.
 

Constructor parameters in org.modeshape.graph.request with type arguments of type Constraint
AccessQueryRequest(String workspace, SelectorName tableName, QueryResults.Columns resultColumns, List<Constraint> andedConstraints, Limit limit, Schemata schemata, Map<String,Object> variables)
          Create a new request to execute the supplied query against the name workspace.
 

Uses of Constraint in org.modeshape.jcr.query
 

Methods in org.modeshape.jcr.query that return Constraint
protected  Constraint JcrSqlQueryParser.parseConstraint(TokenStream tokens, TypeSystem typeSystem, Source source)
          Parse a constraint clause.
protected  Constraint JcrSqlQueryParser.parsePropertyExistance(TokenStream tokens, TypeSystem typeSystem, Source source)
           
protected  Constraint RewritePseudoColumns.rewrite(QueryContext context, Constraint constraint)
           
protected  Constraint JcrSqlQueryParser.rewriteConstraint(Constraint constraint)
           
 

Methods in org.modeshape.jcr.query with parameters of type Constraint
protected  JcrAnd JcrSql2QueryParser.and(Constraint constraint1, Constraint constraint2)
          
protected  JcrNot JcrSql2QueryParser.not(Constraint constraint)
          
protected  JcrOr JcrSql2QueryParser.or(Constraint constraint1, Constraint constraint2)
          
protected  JcrSelectQuery JcrSql2QueryParser.query(Source source, Constraint constraint, List<? extends Ordering> orderings, List<? extends Column> columns, Limit limit, boolean distinct)
          
protected  Constraint RewritePseudoColumns.rewrite(QueryContext context, Constraint constraint)
           
protected  Constraint JcrSqlQueryParser.rewriteConstraint(Constraint constraint)
           
 

Uses of Constraint in org.modeshape.jcr.query.qom
 

Subinterfaces of Constraint in org.modeshape.jcr.query.qom
 interface JcrConstraint
          Representation of a constraint from JCR and the Graph API.
 

Classes in org.modeshape.jcr.query.qom that implement Constraint
 class JcrAnd
          Implementation of the 'and' constraint for the JCR Query Object Model and the Graph API.
 class JcrBetween
          Implementation of the 'between' constraint for the Graph API and that is an extension to JCR Query Object Model.
 class JcrChildNode
          Implementation of the child node constraint for the JCR Query Object Model and the Graph API.
 class JcrComparison
           
 class JcrDescendantNode
          Implementation of the descendant node constraint for the JCR Query Object Model and the Graph API.
 class JcrFullTextSearch
          Implementation of the full-text search constraint for the JCR Query Object Model and the Graph API.
 class JcrNot
          Implementation of the 'not' constraint for the JCR Query Object Model and the Graph API.
 class JcrOr
          Implementation of the 'or' constraint for the JCR Query Object Model and the Graph API.
 class JcrPropertyExistence
          Implementation of the property existence constraint for the JCR Query Object Model and the Graph API.
 class JcrSameNode
          Implementation of the same node constraint for the JCR Query Object Model and the Graph API.
 class JcrSetCriteria
          Implementation of the same node constraint for the JCR Query Object Model and the Graph API.
 



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