Package | Description |
---|---|
org.modeshape.jcr | |
org.modeshape.jcr.api.query.qom | |
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.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.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. |
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 | Method and Description |
---|---|
protected Set<Operator> |
NodeTypeSchemata.operatorsFor(org.modeshape.jcr.JcrPropertyDefinition defn) |
Modifier and Type | Method and Description |
---|---|
static Operator |
Operator.forSymbol(String symbol)
Attempt to find the Operator given a symbol.
|
Operator |
Operator.reverse()
Get the equivalent operator if the operands are to be reversed.
|
static Operator |
Operator.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
Operator.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
protected Operator |
QueryBuilder.RightHandSide.operator |
Modifier and Type | Method and Description |
---|---|
QueryBuilder.RightHandSide |
QueryBuilder.ComparisonBuilder.is(Operator operator)
Define the operator that will be used in the comparison, returning an interface that can be used to define the
right-hand-side of the comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.is(Operator operator,
Object literalOrSubquery)
Define the right-hand-side of the constraint using the supplied operator.
|
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.is(Operator operator,
Subquery subquery)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isVariable(Operator operator,
String variableName)
Define the right-hand-side of the constraint using the supplied operator.
|
Constructor and Description |
---|
QueryBuilder.RightHandSide(QueryBuilder.ComparisonBuilder comparisonBuilder,
Operator operator) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
LuceneQueryFactory.createQuery(SelectorName selectorName,
DynamicOperand left,
Operator operator,
StaticOperand right) |
protected org.apache.lucene.search.Query |
LuceneQueryFactory.createQuery(SelectorName selectorName,
DynamicOperand left,
Operator operator,
StaticOperand right,
CaseOperations.CaseOperation caseOperation)
Create a comparison query
|
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
Length propertyLength,
Operator operator,
Object value)
Create a query that finds documents with fields whose lengths fit the supplied operator/value criteria.
|
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeDepth depthConstraint,
Operator operator,
Object value) |
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeLocalName nodeName,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeName nodeName,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodePath nodePath,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
PropertyValue propertyValue,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation)
Create a query that finds documents with fields whose values fit the supplied operator/value criteria.
|
protected abstract org.apache.lucene.search.Query |
LuceneQueryFactory.findNodesWith(SelectorName selectorName,
ReferenceValue referenceValue,
Operator operator,
Object value)
Create a query that finds documents with fields that are references that fit the supplied operator/value criteria.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
Length propertyLength,
Operator operator,
Object value) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeDepth depthConstraint,
Operator operator,
Object value) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeLocalName nodeName,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodeName nodeName,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
NodePath nodePath,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
PropertyValue propertyValue,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
PropertyValue propertyValue,
Operator operator,
Object value,
CaseOperations.CaseOperation caseOperation,
PropertyType valueType,
Schemata.Column metadata) |
protected org.apache.lucene.search.Query |
BasicLuceneQueryFactory.findNodesWith(SelectorName selectorName,
ReferenceValue referenceValue,
Operator operator,
Object value) |
Modifier and Type | Method and Description |
---|---|
Operator |
Comparison.operator()
Get the operator for this comparison
|
Constructor and Description |
---|
Comparison(DynamicOperand operand1,
Operator operator,
StaticOperand operand2) |
Modifier and Type | Method and Description |
---|---|
protected Operator |
BasicSqlQueryParser.parseComparisonOperator(TokenStream tokens) |
Modifier and Type | Method and Description |
---|---|
protected Comparison |
BasicSqlQueryParser.comparison(DynamicOperand left,
Operator operator,
StaticOperand right) |
Modifier and Type | Method and Description |
---|---|
protected SelectComponent.ConstraintChecker |
SelectComponent.createChecker(TypeSystem types,
Schemata schemata,
QueryResults.Columns columns,
ProcessingComponent.DynamicOperation dynamicOperation,
Operator operator,
StaticOperand staticOperand) |
Modifier and Type | Field and Description |
---|---|
static Set<Operator> |
ImmutableColumn.ALL_OPERATORS |
static Set<Operator> |
ImmutableColumn.NO_OPERATORS |
Modifier and Type | Method and Description |
---|---|
Set<Operator> |
Schemata.Column.getOperators()
Get the set of operators that can be used in a comparison involving this column.
|
Set<Operator> |
ImmutableColumn.getOperators() |
protected Set<Operator> |
ImmutableSchemata.Builder.operators(SelectorName tableName,
String columnName,
Set<Operator> defaultOperators) |
Modifier and Type | Method and Description |
---|---|
protected void |
Validator.verifyComparison(DynamicOperand operand,
Operator op,
StaticOperand rhs) |
protected void |
Validator.verifyOperator(SelectorName selectorName,
String propertyName,
Operator op) |
Modifier and Type | Method and Description |
---|---|
ImmutableSchemata.Builder |
ImmutableSchemata.Builder.addColumn(String tableName,
String columnName,
String type,
PropertyType requiredType,
boolean fullTextSearchable,
boolean orderable,
Object minimum,
Object maximum,
Set<Operator> operations)
Add a column with the supplied name and type to the named table.
|
ImmutableSchemata.Builder |
ImmutableSchemata.Builder.markOperators(String tableName,
String columnName,
Set<Operator> operators)
Record the operators that are allowed for the named column on the named table.
|
protected Set<Operator> |
ImmutableSchemata.Builder.operators(SelectorName tableName,
String columnName,
Set<Operator> defaultOperators) |
Constructor and Description |
---|
ImmutableColumn(String name,
String type,
PropertyType requiredType,
boolean fullTextSearchable,
boolean orderable,
boolean canContainReferences,
Object minimum,
Object maximum,
Operator... operators) |
Constructor and Description |
---|
ImmutableColumn(String name,
String type,
PropertyType requiredType,
boolean fullTextSearchable,
boolean orderable,
Object minimum,
Object maximum,
Set<Operator> operators) |
Modifier and Type | Method and Description |
---|---|
Operator |
XPath.Comparison.getOperator() |
protected Operator |
XPathParser.parseGeneralComp(TokenStream tokens) |
Constructor and Description |
---|
XPath.Comparison(XPath.Component left,
Operator operator,
XPath.Component right) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.