Package | Description |
---|---|
org.modeshape.jcr.query |
The Query API provides a mechanism for building and executing queries.
|
org.modeshape.jcr.query.lucene |
The core query engine, which currently uses Lucene for indexing and raw queries, and
the Hibernate Search engine (which does not depend on or use Hibernate Core or JPA)
for updating and querying the Lucene indexes.
|
org.modeshape.jcr.query.lucene.basic |
The "basic"
Lucene schema has a single index in which all node
and property information are indexed into separate fields. |
org.modeshape.jcr.query.model |
The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query.
|
org.modeshape.jcr.query.optimize |
This package contains the Optimizer interface, a rule-based optimizer implementation, and library of optimization rules.
|
org.modeshape.jcr.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.jcr.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.jcr.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. |
Modifier and Type | Field and Description |
---|---|
protected Constraint |
QueryBuilder.constraint |
Modifier and Type | Method and Description |
---|---|
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.setConstraint(Constraint constraint) |
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperCaser.setConstraint(Constraint constraint) |
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.LowerCaser.setConstraint(Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
Constraint |
LuceneQuery.getPostProcessingConstraints()
Get the ANDed-constraints that could not be pushed down to Lucene.
|
Modifier and Type | Method and Description |
---|---|
void |
LuceneQuery.addConstraintForPostprocessing(Constraint constraint)
Record one of the ANDed constraints could not be converted into a Lucene query and thus will need to be handled after the
Lucene processing is done.
|
Modifier and Type | Method and Description |
---|---|
LuceneQuery |
LuceneSchema.createQuery(SelectorName selectorName,
List<Constraint> andedConstraints,
LuceneProcessingContext context)
Create a
LuceneQuery for the supplied ANDed constraints of the ModeShape access query, which comes from the leaves
of a query plan. |
Modifier and Type | Method and Description |
---|---|
LuceneQuery |
BasicLuceneSchema.createQuery(SelectorName selectorName,
List<Constraint> andedConstraints,
LuceneProcessingContext processingContext) |
Modifier and Type | Method and Description |
---|---|
Constraint |
Query.constraint()
Get the constraints, if there are any.
|
Constraint |
SelectQuery.getConstraint() |
Constraint |
Not.getConstraint() |
Constraint |
Or.getConstraint1() |
Constraint |
And.getConstraint1() |
Constraint |
Or.getConstraint2() |
Constraint |
And.getConstraint2() |
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.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.constrainedBy(Constraint constraint)
Create a copy of this query, but one that uses the supplied constraint.
|
Constructor and Description |
---|
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.
|
SelectQuery(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.
|
Modifier and Type | Field and Description |
---|---|
protected static Constraint |
RewriteAsRangeCriteria.CONFLICTING_CONSTRAINT |
Modifier and Type | Method and Description |
---|---|
protected Constraint |
RewritePseudoColumns.rewrite(QueryContext context,
Constraint 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)
|
protected Constraint |
RewritePathAndNameCriteria.rewriteCriteria(QueryContext context,
Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
protected Constraint |
RewritePseudoColumns.rewrite(QueryContext context,
Constraint constraint) |
protected Constraint |
RewritePathAndNameCriteria.rewriteCriteria(QueryContext context,
Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
protected Constraint |
JcrSqlQueryParser.parseConstraint(TokenStream tokens,
TypeSystem typeSystem,
Source source)
Parse a constraint clause.
|
protected Constraint |
BasicSqlQueryParser.parseConstraint(TokenStream tokens,
TypeSystem typeSystem,
Source source) |
protected Constraint |
JcrSqlQueryParser.parsePropertyExistance(TokenStream tokens,
TypeSystem typeSystem,
Source source) |
protected Constraint |
BasicSqlQueryParser.parsePropertyExistance(TokenStream tokens,
TypeSystem typeSystem,
Source source) |
protected Constraint |
BasicSqlQueryParser.parseWhere(TokenStream tokens,
TypeSystem typeSystem,
Source source) |
protected Constraint |
JcrSqlQueryParser.rewriteConstraint(Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
protected And |
BasicSqlQueryParser.and(Constraint constraint1,
Constraint constraint2) |
protected Not |
BasicSqlQueryParser.not(Constraint constraint) |
protected Or |
BasicSqlQueryParser.or(Constraint constraint1,
Constraint constraint2) |
protected Query |
BasicSqlQueryParser.query(Source source,
Constraint constraint,
List<? extends Ordering> orderings,
List<? extends Column> columns,
Limit limit,
boolean distinct) |
protected Constraint |
JcrSqlQueryParser.rewriteConstraint(Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected List<Constraint> |
AbstractAccessComponent.andedConstraints |
Modifier and Type | Method and Description |
---|---|
protected SelectComponent.ConstraintChecker |
SelectComponent.createChecker(TypeSystem types,
Schemata schemata,
QueryResults.Columns columns,
Constraint constraint,
Map<String,Object> variables)
Create the constraint evaluator that is used by the
SelectComponent to evaluate the supplied criteria . |
static boolean |
QueryResultColumns.includeFullTextScores(Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
static boolean |
QueryResultColumns.includeFullTextScores(Iterable<Constraint> constraints) |
Constructor and Description |
---|
SelectComponent(ProcessingComponent delegate,
Constraint constraint,
Map<String,Object> variables)
Create a SELECT processing component that pass those tuples that satisfy the supplied constraint.
|
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.