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.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.validate |
This package provides the interfaces that define the tables and columns that can be queried.
|
Modifier and Type | Field and Description |
---|---|
protected List<Column> |
QueryBuilder.columns |
Modifier and Type | Method and Description |
---|---|
protected Column |
QueryBuilder.column(String nameExpression)
Create a
Column given the supplied expression. |
Modifier and Type | Method and Description |
---|---|
List<? extends Column> |
QueryResults.Columns.getColumns()
Get the columns.
|
Modifier and Type | Field and Description |
---|---|
protected static List<Column> |
ScanningQueryEngine.ResultColumns.NO_COLUMNS |
Modifier and Type | Method and Description |
---|---|
protected static Set<Column> |
ScanningQueryEngine.ResultColumns.findColumnsWithSameNames(List<Column> columns) |
List<? extends Column> |
ScanningQueryEngine.ResultColumns.getColumns() |
Iterator<Column> |
ScanningQueryEngine.ResultColumns.iterator() |
Modifier and Type | Method and Description |
---|---|
protected static String |
ScanningQueryEngine.ResultColumns.columnNameFor(Column column,
List<String> columnNames,
Set<Column> columnsWithDuplicateNames,
Collection<String> selectorNames) |
Modifier and Type | Method and Description |
---|---|
protected static String |
ScanningQueryEngine.ResultColumns.columnNameFor(Column column,
List<String> columnNames,
Set<Column> columnsWithDuplicateNames,
Collection<String> selectorNames) |
protected static Set<Column> |
ScanningQueryEngine.ResultColumns.findColumnsWithSameNames(List<Column> columns) |
Constructor and Description |
---|
ScanningQueryEngine.ResultColumns(List<Column> columns,
List<String> columnTypes,
boolean includeFullTextSearchScores,
QueryResults.Columns precedingColumns)
Create a new definition for the query results given the supplied columns.
|
Modifier and Type | Method and Description |
---|---|
Column |
QueryObjectModelFactory.column(String selectorName,
String propertyName,
String columnName) |
Column[] |
SetQuery.getColumns() |
Column |
Column.with(SelectorName newSelectorName)
Create a copy of this Column except that uses the supplied selector name instead.
|
Column |
Column.withColumnName(String columnName) |
Modifier and Type | Method and Description |
---|---|
List<? extends Column> |
SetQuery.columns() |
List<? extends Column> |
QueryCommand.columns()
Return the columns defining the query results.
|
List<? extends Column> |
Query.columns() |
Modifier and Type | Method and Description |
---|---|
Query |
Query.adding(Column... columns)
Create a copy of this query, but that returns results that include the columns specified by this query as well as the
supplied columns.
|
void |
Visitors.AbstractVisitor.visit(Column obj) |
void |
Visitors.WalkAllVisitor.visit(Column column) |
void |
Visitors.ReadableVisitor.visit(Column column) |
void |
Visitor.visit(Column obj) |
Modifier and Type | Method and Description |
---|---|
Query |
Query.returning(List<Column> columns)
Create a copy of this query, but that returns results with the supplied columns.
|
protected static boolean |
SetQuery.unionableColumns(List<? extends Column> left,
List<? extends Column> right) |
protected static boolean |
SetQuery.unionableColumns(List<? extends Column> left,
List<? extends Column> right) |
Constructor and Description |
---|
EquiJoinCondition(Column column1,
Column column2)
Create an equi-join condition, given the columns.
|
Constructor and Description |
---|
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 | Method and Description |
---|---|
protected Column |
AddOrderingColumnsToSources.columnFor(SelectorName selector,
String property,
boolean includeSourceName) |
protected Column |
AddJoinConditionColumnsToSources.columnFor(SelectorName selector,
String property,
boolean includeSourceName) |
Modifier and Type | Method and Description |
---|---|
static Set<Column> |
RaiseSelectCriteria.getColumnsReferencedBy(Visitable visitable)
Get the set of Column objects that represent those columns referenced by the visitable object.
|
static Set<Column> |
CopyCriteria.getColumnsReferencedBy(Visitable visitable)
Get the set of Column objects that represent those columns referenced by the visitable object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AddJoinConditionColumnsToSources.addEquiJoinColumn(QueryContext context,
PlanNode node,
Column joinColumn)
Make sure that the supplied column is included in the
projected columns on the supplied
plan node or its children. |
protected boolean |
AddOrderingColumnsToSources.addIfMissing(QueryContext context,
Column column,
List<Column> columns,
List<String> columnTypes)
Check the supplied list of columns for an existing column that matches the supplied
Column , and if none is found
add the supplied Column to the list and add an appropriate type. |
protected boolean |
AddJoinConditionColumnsToSources.addIfMissing(QueryContext context,
Column column,
List<Column> columns,
List<String> columnTypes)
Check the supplied list of columns for an existing column that matches the supplied
Column , and if none is found
add the supplied Column to the list and add an appropriate type. |
protected boolean |
AddOrderingColumnsToSources.addSortColumn(QueryContext context,
PlanNode node,
Column sortColumn)
Make sure that the supplied column is included in the
projected columns on the supplied
plan node or its children. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AddOrderingColumnsToSources.addIfMissing(QueryContext context,
Column column,
List<Column> columns,
List<String> columnTypes)
Check the supplied list of columns for an existing column that matches the supplied
Column , and if none is found
add the supplied Column to the list and add an appropriate type. |
protected boolean |
AddJoinConditionColumnsToSources.addIfMissing(QueryContext context,
Column column,
List<Column> columns,
List<String> columnTypes)
Check the supplied list of columns for an existing column that matches the supplied
Column , and if none is found
add the supplied Column to the list and add an appropriate type. |
protected Set<SelectorName> |
PushProjects.getSelectorsFor(List<Column> columns) |
Modifier and Type | Field and Description |
---|---|
protected static List<? extends Column> |
FullTextSearchParser.FULL_TEXT_COLUMNS |
Modifier and Type | Method and Description |
---|---|
protected Column |
BasicSqlQueryParser.column(SelectorName selectorName,
String propertyName,
String columnName) |
Modifier and Type | Method and Description |
---|---|
protected Query |
BasicSqlQueryParser.query(Source source,
Constraint constraint,
List<? extends Ordering> orderings,
List<? extends Column> columns,
Limit limit,
boolean distinct) |
Modifier and Type | Method and Description |
---|---|
Column |
PlanUtil.ColumnMapping.getMappedColumn(String viewColumnName) |
Modifier and Type | Method and Description |
---|---|
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.
|
List<Column> |
PlanUtil.RequiredColumnVisitor.getRequiredColumns()
Get the columns that are required.
|
Modifier and Type | Method and Description |
---|---|
void |
PlanUtil.ColumnMapping.map(String originalColumnName,
Column projectedColumn) |
void |
PlanUtil.RequiredColumnVisitor.visit(Column column) |
Modifier and Type | Method and Description |
---|---|
static PlanNode |
PlanUtil.addMissingProjectColumns(QueryContext context,
PlanNode node,
List<Column> allProjectedColumns) |
protected void |
CanonicalPlanner.allColumnsFor(Schemata.Table table,
SelectorName tableName,
List<Column> columns,
List<String> columnTypes,
boolean includeSelectorNameInColumnName) |
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.
|
protected PlanNode |
CanonicalPlanner.attachProject(QueryContext context,
PlanNode plan,
List<? extends Column> columns,
Map<SelectorName,Schemata.Table> selectors)
Attach a PROJECT node at the top of the plan tree.
|
static List<String> |
PlanUtil.findRequiredColumnTypes(QueryContext context,
List<Column> columns,
PlanNode node) |
Modifier and Type | Method and Description |
---|---|
void |
Validator.visit(Column obj) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.