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.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 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.TupleReformatter.getColumns() |
QueryResults.Columns |
QueryResults.Columns.joinWith(QueryResults.Columns columns)
Obtain a new definition for the query results that is a combination of the these columns and the supplied columns,
where the columns from this object appear first, followed by columns from the supplied set.
|
QueryResults.Columns |
QueryResults.Columns.subSelect(Column... columns)
Obtain a new definition for the query results that can be used to reference the same tuples that use this columns
definition, but that defines a subset of the columns in this definition.
|
QueryResults.Columns |
QueryResults.Columns.subSelect(List<Column> columns)
Obtain a new definition for the query results that can be used to reference the same tuples that use this columns
definition, but that defines a subset of the columns in this definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QueryResults.Columns.includes(QueryResults.Columns other)
Determine whether this mapping includes all of the columns (and locations) in the supplied mapping.
|
boolean |
QueryResults.Columns.isUnionCompatible(QueryResults.Columns other)
Determine whether this column and the other are union-compatible (that is, having the same columns).
|
QueryResults.Columns |
QueryResults.Columns.joinWith(QueryResults.Columns columns)
Obtain a new definition for the query results that is a combination of the these columns and the supplied columns,
where the columns from this object appear first, followed by columns from the supplied set.
|
Modifier and Type | Method and Description |
---|---|
protected ProcessingComponent |
LuceneQueryEngine.LuceneQueryProcessor.createAccessComponent(QueryCommand originalQuery,
QueryContext context,
PlanNode accessNode,
QueryResults.Columns resultColumns,
LuceneProcessingContext processingContext) |
LuceneQueryEngine.TupleCollector |
LuceneSchema.createTupleCollector(QueryContext queryContext,
QueryResults.Columns columns) |
Constructor and Description |
---|
LuceneQueryEngine.LuceneAccessQuery(LuceneSchema schema,
LuceneProcessingContext processingContext,
QueryContext context,
QueryResults.Columns resultColumns,
PlanNode accessNode) |
Modifier and Type | Method and Description |
---|---|
LuceneQueryEngine.TupleCollector |
BasicLuceneSchema.createTupleCollector(QueryContext queryContext,
QueryResults.Columns columns) |
Constructor and Description |
---|
BasicTupleCollector(QueryContext queryContext,
QueryResults.Columns columns) |
Modifier and Type | Class and Description |
---|---|
class |
QueryResultColumns
Defines the columns associated with the results of a query.
|
Modifier and Type | Method and Description |
---|---|
protected QueryResults.Columns |
DependentQueryComponent.colunnsOfDependentQuery()
Get the columns definition for the results from the right component that is dependent upon the left.
|
protected QueryResults.Columns |
DependentQueryComponent.colunnsOfIndependentQuery()
Get the columns definition for the results from the left, independent query that is processed first.
|
protected QueryResults.Columns |
QueryProcessor.createColumnsFor(PlanNode node,
QueryResults.Columns projectedColumns) |
QueryResults.Columns |
SetOperationComponent.getColumns() |
QueryResults.Columns |
QueryResults.getColumns() |
QueryResults.Columns |
QueryResultColumns.WrappedReformatter.getColumns() |
QueryResults.Columns |
ProcessingComponent.getColumns()
Get the column definitions.
|
QueryResults.Columns |
QueryResultColumns.joinWith(QueryResults.Columns rightColumns) |
protected QueryResults.Columns |
JoinComponent.leftColunns()
Get the columns definition for the results from the left side of the join.
|
protected QueryResults.Columns |
JoinComponent.rightColumns()
Get the columns definition for the results from the right side of the join.
|
QueryResults.Columns |
QueryResultColumns.subSelect(Column... columns) |
QueryResults.Columns |
QueryResultColumns.subSelect(List<Column> columns) |
Modifier and Type | Method and Description |
---|---|
protected abstract ProcessingComponent |
QueryProcessor.createAccessComponent(QueryCommand originalQuery,
QueryContext context,
PlanNode accessNode,
QueryResults.Columns resultColumns,
ProcessingContextType processingContext)
Create the
ProcessingComponent that processes a single PlanNode.Type.ACCESS branch of a query plan. |
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 . |
protected SelectComponent.ConstraintChecker |
SelectComponent.createChecker(TypeSystem types,
Schemata schemata,
QueryResults.Columns columns,
ProcessingComponent.DynamicOperation dynamicOperation,
Operator operator,
StaticOperand staticOperand) |
protected QueryResults.Columns |
QueryProcessor.createColumnsFor(PlanNode node,
QueryResults.Columns projectedColumns) |
protected ProcessingComponent |
QueryProcessor.createComponent(QueryCommand originalQuery,
QueryContext context,
PlanNode node,
QueryResults.Columns columns,
ProcessingContextType processingContext)
Method that is called to build up the
ProcessingComponent objects that correspond to the optimized query plan. |
protected ProcessingComponent.DynamicOperation |
ProcessingComponent.createDynamicOperation(TypeSystem typeSystem,
Schemata schemata,
QueryResults.Columns columns,
DynamicOperand operand)
Create a
ProcessingComponent.DynamicOperation instance that is able to evaluate the supplied DynamicOperand . |
protected static JoinComponent.TupleMerger |
JoinComponent.createMerger(QueryResults.Columns joinColumns,
QueryResults.Columns leftColumns,
QueryResults.Columns rightColumns)
Create a
JoinComponent.TupleMerger implementation that will combine a tuple fitting the left columns with a tuple fitting the
right columns. |
protected Comparator<Object[]> |
ProcessingComponent.createSortComparator(QueryContext context,
QueryResults.Columns columns) |
protected Comparator<Object[]> |
SortValuesComponent.createSortComparator(QueryContext context,
QueryResults.Columns columns,
List<Ordering> orderings,
Map<SelectorName,SelectorName> sourceNamesByAlias) |
protected Comparator<Object[]> |
SortValuesComponent.createSortComparator(QueryContext context,
QueryResults.Columns columns,
Ordering ordering,
Map<SelectorName,SelectorName> sourceNamesByAlias) |
protected int[] |
ProcessingComponent.getLocationIndexes(QueryResults.Columns columns) |
boolean |
QueryResultColumns.includes(QueryResults.Columns other) |
protected boolean |
MergeJoinComponent.isSameTuple(QueryResults.Columns columns,
Object[] tuple1,
Object[] tuple2) |
boolean |
QueryResultColumns.isUnionCompatible(QueryResults.Columns other) |
QueryResults.Columns |
QueryResultColumns.joinWith(QueryResults.Columns rightColumns) |
protected static boolean |
SetOperationComponent.unionCompatible(QueryResults.Columns columns,
Iterable<ProcessingComponent> sources) |
Constructor and Description |
---|
AbstractAccessComponent(QueryContext context,
QueryResults.Columns columns,
PlanNode accessNode) |
DelegatingComponent(ProcessingComponent delegate,
QueryResults.Columns overridingColumns) |
ExceptComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all) |
IntersectComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all) |
NoResultsComponent(QueryContext context,
QueryResults.Columns columns) |
ProcessingComponent(QueryContext context,
QueryResults.Columns columns) |
QueryResultColumns.WrappedReformatter(int[] indexes,
QueryResults.Columns columns) |
QueryResults.TupleCursor(QueryResults.Columns columns,
Iterator<Object[]> iterator) |
QueryResults(QueryResults.Columns columns,
QueryResults.Statistics statistics)
Create an empty
QueryResults object for the supplied context, command, and result columns. |
QueryResults(QueryResults.Columns columns,
QueryResults.Statistics statistics,
List<Object[]> tuples)
Create a results object for the supplied context, command, and result columns and with the supplied tuples.
|
QueryResults(QueryResults.Columns columns,
QueryResults.Statistics statistics,
List<Object[]> tuples,
Problems problems,
String plan)
Create a results object for the supplied context, command, and result columns and with the supplied tuples.
|
QueryResults(QueryResults.Columns columns,
QueryResults.Statistics statistics,
Problems problems)
Create an empty
QueryResults object for the supplied context, command, and result columns. |
SetOperationComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all) |
UnionComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.