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.
|
Modifier and Type | Field and Description |
---|---|
protected QueryResults.Columns |
JcrQueryResult.QueryResultRowIterator.columns |
Modifier and Type | Method and Description |
---|---|
QueryResults.Columns |
QueryResults.getColumns()
Get the description of the columns contained in these results.
|
QueryResults.Columns |
QueryResults.Columns.with(QueryResults.Columns other)
Return a new Columns that is a superset combination of both this Columns and the supplied Columns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QueryResults.Columns.isUnionCompatible(QueryResults.Columns other)
Determine whether this column and the other are union-compatible (that is, having the same columns).
|
static NodeSequence |
NodeSequence.slice(NodeSequence original,
QueryResults.Columns columns)
Create a sequence of nodes that include only those selectors defined by the given columns.
|
QueryResults.Columns |
QueryResults.Columns.with(QueryResults.Columns other)
Return a new Columns that is a superset combination of both this Columns and the supplied Columns.
|
Constructor and Description |
---|
JcrQueryResult.QueryResultRowIterator(JcrQueryContext context,
String query,
NodeSequence sequence,
QueryResults.Columns columns) |
JcrQueryResult.SingleSelectorQueryResultRowIterator(JcrQueryContext context,
String query,
NodeSequence sequence,
QueryResults.Columns columns) |
Modifier and Type | Class and Description |
---|---|
static class |
ScanningQueryEngine.ResultColumns |
Modifier and Type | Method and Description |
---|---|
protected QueryResults.Columns |
ScanningQueryEngine.determineProjectedColumns(PlanNode optimizedPlan,
org.modeshape.jcr.query.engine.ScanningQueryEngine.ScanQueryContext context)
Compute the columns that are defined in the supplied
plan node . |
QueryResults.Columns |
Results.getColumns() |
QueryResults.Columns |
ScanningQueryEngine.ResultColumns.with(QueryResults.Columns other) |
Modifier and Type | Method and Description |
---|---|
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractFromRow(DynamicOperand operand,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType,
boolean allowMultiValued,
boolean isLike)
Create a
RowExtractors.ExtractFromRow implementation that performs the supplied DynamicOperand against a current row in
the current batch. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractFromRow(String selectorName,
String propertyName,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType,
boolean allowMultiValued)
Create a
RowExtractors.ExtractFromRow implementation that accesses the value(s) in the property identified by the supplied
selector and property names. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractReferencesFromRow(String selectorName,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType)
Create a
RowExtractors.ExtractFromRow implementation that accesses the REFERENCE value(s) in the properties of the node
identified by the supplied selector names. |
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.
|
protected NodeSequence.RowFilter |
ScanningQueryEngine.createRowFilter(Constraint constraint,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources)
Create a
NodeSequence.RowFilter implementation given the supplied constraints. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createSortingExtractor(List<Ordering> orderings,
Map<SelectorName,SelectorName> sourceNamesByAlias,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources)
Create an
RowExtractors.ExtractFromRow instance that produces for given row a single object that can be used to sort all rows in
the specified order. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createSortingExtractor(Ordering ordering,
Map<SelectorName,SelectorName> sourceNamesByAlias,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources)
Create an
RowExtractors.ExtractFromRow instance that produces for given row a single object that can be used to sort all rows in
the specified order. |
protected TypeSystem.TypeFactory<?> |
ScanningQueryEngine.determineType(DynamicOperand operand,
QueryContext context,
QueryResults.Columns columns) |
boolean |
ScanningQueryEngine.ResultColumns.isUnionCompatible(QueryResults.Columns other) |
QueryResults.Columns |
ScanningQueryEngine.ResultColumns.with(QueryResults.Columns other) |
Constructor and Description |
---|
Results(QueryResults.Columns columns,
QueryResults.Statistics statistics,
NodeSequence rows,
CachedNodeSupplier cachedNodes,
Problems problems,
String plan)
Create a results object for the supplied context, command, and result columns and with the supplied tuples.
|
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.
|
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.