Package | Description |
---|---|
org.modeshape.jcr.query |
The Query API provides a mechanism for building and executing queries.
|
org.modeshape.jcr.query.engine |
This package contains several fully-functional query engine implementations.
|
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.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.validate |
This package provides the interfaces that define the tables and columns that can be queried.
|
org.modeshape.jcr.query.xpath |
The components used to parse JCR XPath queries and translate them into equivalent JCR-SQL2 queries.
|
Modifier and Type | Field and Description |
---|---|
protected QueryCommand |
QueryBuilder.firstQuery |
Modifier and Type | Method and Description |
---|---|
QueryCommand |
JcrQuery.getAbstractQueryModel()
Get the underlying and immutable Abstract Query Model representation of this query.
|
QueryCommand |
QueryBuilder.query()
Return a
QueryCommand representing the currently-built query. |
protected QueryCommand |
JcrQuery.query() |
Modifier and Type | Method and Description |
---|---|
CancellableQuery |
JcrQueryContext.createExecutableQuery(QueryCommand query,
PlanHints hints,
Map<String,Object> variables)
|
QueryResults |
QueryEngine.execute(QueryContext context,
QueryCommand query)
Execute the supplied query by planning, optimizing, and then processing it.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.is(Operator operator,
QueryCommand subquery)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isInSubquery(QueryCommand subquery) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(QueryCommand subquery)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.subquery(QueryCommand subquery)
Define the upper boundary value of a range.
|
QueryBuilder.AndBuilder<QueryBuilder.UpperBoundary> |
QueryBuilder.LowerBoundary.subquery(QueryCommand subquery)
Define the lower boundary value of a range.
|
Constructor and Description |
---|
JcrQuery(JcrQueryContext context,
String statement,
String language,
QueryCommand query,
PlanHints hints,
Path storedAtPath)
Creates a new JCR
Query by specifying the query statement itself, the language in which the query is stated, the
QueryCommand representation and, optionally, the node from which the query was loaded. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ScanningQueryEngine.checkUnionCompatible(QueryResults.Columns results1,
QueryResults.Columns results2,
org.modeshape.jcr.query.engine.ScanningQueryEngine.ScanQueryContext context,
QueryCommand query)
Determine whether this column and the other are union-compatible (that is, having the same columns).
|
protected NodeSequence |
ScanningQueryEngine.createNodeSequence(QueryCommand originalQuery,
org.modeshape.jcr.query.engine.ScanningQueryEngine.ScanQueryContext context,
PlanNode plan,
QueryResults.Columns columns,
QuerySources sources)
Create a node sequence containing the results of the original query as defined by the supplied plan.
|
protected NodeSequence |
ScanningQueryEngine.createNodeSequenceForSource(QueryCommand originalQuery,
QueryContext context,
PlanNode sourceNode,
IndexPlan index,
QueryResults.Columns columns,
QuerySources sources)
Create a node sequence for the given index
|
protected NodeSequence |
IndexQueryEngine.createNodeSequenceForSource(QueryCommand originalQuery,
QueryContext context,
PlanNode sourceNode,
IndexPlan indexPlan,
QueryResults.Columns columns,
QuerySources sources) |
protected NodeSequence |
ScanningQueryEngine.createNodeSequenceForSource(QueryCommand originalQuery,
QueryContext context,
PlanNode sourceNode,
QueryResults.Columns columns,
QuerySources sources)
Create a node sequence for the given source.
|
QueryResults |
ScanningQueryEngine.execute(QueryContext queryContext,
QueryCommand query)
Execute the supplied query by planning, optimizing, and then processing it.
|
protected QueryResults |
ScanningQueryEngine.executeOptimizedQuery(org.modeshape.jcr.query.engine.ScanningQueryEngine.ScanQueryContext context,
QueryCommand command,
QueryResults.Statistics statistics,
PlanNode plan)
Execute the optimized query defined by the supplied
plan node . |
Modifier and Type | Method and Description |
---|---|
QueryCommand |
SetQueryObjectModel.getLeft() |
QueryCommand |
SetQuery.getLeft() |
QueryCommand |
Subquery.getQuery() |
QueryCommand |
SetQueryObjectModel.getRight() |
QueryCommand |
SetQuery.getRight() |
QueryCommand |
QueryCommand.withLimit(int rowLimit)
Create a copy of this query, but one that uses the supplied limit on the number of result rows.
|
QueryCommand |
QueryCommand.withOffset(int offset)
Create a copy of this query, but one that uses the supplied offset.
|
Constructor and Description |
---|
SetQuery(QueryCommand left,
SetQuery.Operation operation,
QueryCommand right,
boolean all)
Create a set query involving the supplied left- and right-hand-side queries.
|
SetQuery(QueryCommand left,
SetQuery.Operation operation,
QueryCommand right,
boolean all,
List<? extends Ordering> orderings,
Limit limit)
Create a set query involving the supplied left- and right-hand-side queries.
|
Subquery(QueryCommand query)
Create a new subquery component that uses the supplied query as the subquery expression.
|
Modifier and Type | Method and Description |
---|---|
QueryCommand |
QueryParsers.parse(TypeSystem typeSystem,
String language,
String query)
Execute the supplied query by planning, optimizing, and then processing it.
|
QueryCommand |
QueryParser.parseQuery(String query,
TypeSystem typeSystem)
Parse the supplied query from a string representation into a
QueryCommand . |
QueryCommand |
FullTextSearchParser.parseQuery(String query,
TypeSystem typeSystem) |
QueryCommand |
BasicSqlQueryParser.parseQuery(String query,
TypeSystem typeSystem) |
protected QueryCommand |
BasicSqlQueryParser.parseQueryCommand(TokenStream tokens,
TypeSystem typeSystem) |
Modifier and Type | Method and Description |
---|---|
protected SetQuery |
BasicSqlQueryParser.parseSetQuery(TokenStream tokens,
QueryCommand leftHandSide,
TypeSystem typeSystem) |
protected SetQuery |
BasicSqlQueryParser.setQuery(QueryCommand leftQuery,
SetQuery.Operation operation,
QueryCommand rightQuery,
boolean all) |
protected Subquery |
BasicSqlQueryParser.subquery(QueryCommand queryCommand) |
Modifier and Type | Method and Description |
---|---|
PlanNode |
Planner.createPlan(QueryContext context,
QueryCommand query)
Create a canonical query plan for the given command.
|
PlanNode |
CanonicalPlanner.createPlan(QueryContext context,
QueryCommand query) |
protected void |
CanonicalPlanner.validate(QueryContext context,
QueryCommand query,
Map<SelectorName,Schemata.Table> usedSelectors)
Validate the supplied query.
|
Modifier and Type | Method and Description |
---|---|
QueryCommand |
Schemata.View.getDefinition()
Get the
query that is the definition of the view. |
Modifier and Type | Method and Description |
---|---|
ImmutableSchemata.Builder |
ImmutableSchemata.Builder.addView(String name,
QueryCommand definition)
Add a view with the supplied name and definition.
|
Modifier and Type | Method and Description |
---|---|
QueryCommand |
XPathToQueryTranslator.createQuery(XPath.Component xpath) |
QueryCommand |
XPathQueryParser.parseQuery(String query,
TypeSystem typeSystem) |
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.