Class AstElementFactory
java.lang.Object
org.apache.jackrabbit.oak.query.ast.AstElementFactory
A factory for syntax tree elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand
(ConstraintImpl constraint1, ConstraintImpl constraint2) ascending
(DynamicOperandImpl operand) bindVariable
(String bindVariableName) childNodeJoinCondition
(String childSelectorName, String parentSelectorName) coalesce
(DynamicOperandImpl operand1, DynamicOperandImpl operand2) comparison
(DynamicOperandImpl operand1, Operator operator, StaticOperandImpl operand2) static @NotNull org.apache.jackrabbit.oak.query.ast.AstElement
copyElementAndCheckReference
(@NotNull org.apache.jackrabbit.oak.query.ast.AstElement e) as theAstElement.copyOf()
can returnthis
is the cloning is not implemented by the subclass, this method add some spice around it by checking for this case and tracking a DEBUG message in the logs.descendantNode
(String selectorName, String path) descendantNodeJoinCondition
(String descendantSelectorName, String ancestorSelectorName) descending
(DynamicOperandImpl operand) equiJoinCondition
(String selector1Name, String property1Name, String selector2Name, String property2Name) first
(DynamicOperandImpl operand) fullTextSearch
(String selectorName, String propertyName, StaticOperandImpl fullTextSearchExpression) fullTextSearchScore
(String selectorName) in
(DynamicOperandImpl left, ArrayList<StaticOperandImpl> list) join
(SourceImpl left, SourceImpl right, JoinType joinType, JoinConditionImpl joinCondition) length
(DynamicOperandImpl operand) literal
(PropertyValue literalValue) lowerCase
(DynamicOperandImpl operand) nativeFunction
(String selectorName, String language, StaticOperandImpl expression) nodeLocalName
(String selectorName) not
(ConstraintImpl constraint) or
(ConstraintImpl constraint1, ConstraintImpl constraint2) propertyExistence
(String selectorName, String propertyName) propertyInexistence
(String selectorName, String propertyName) propertyValue
(String selectorName, String propertyName) propertyValue
(String selectorName, String propertyName, String propertyType) sameNodeJoinCondition
(String selector1Name, String selector2Name, String selector2Path) selector
(NodeTypeInfo nodeTypeInfo, String selectorName) similar
(String selectorName, String propertyName, StaticOperandImpl path) spellcheck
(String selectorName, StaticOperandImpl expression) suggest
(String selectorName, StaticOperandImpl expression) upperCase
(DynamicOperandImpl operand)
-
Constructor Details
-
AstElementFactory
public AstElementFactory()
-
-
Method Details
-
and
-
ascending
-
bindVariable
-
childNode
-
childNodeJoinCondition
public ChildNodeJoinConditionImpl childNodeJoinCondition(String childSelectorName, String parentSelectorName) -
coalesce
-
column
-
comparison
public ComparisonImpl comparison(DynamicOperandImpl operand1, Operator operator, StaticOperandImpl operand2) -
descendantNode
-
descendantNodeJoinCondition
public DescendantNodeJoinConditionImpl descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName) -
descending
-
equiJoinCondition
public EquiJoinConditionImpl equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name) -
fullTextSearch
public FullTextSearchImpl fullTextSearch(String selectorName, String propertyName, StaticOperandImpl fullTextSearchExpression) -
fullTextSearchScore
-
join
public JoinImpl join(SourceImpl left, SourceImpl right, JoinType joinType, JoinConditionImpl joinCondition) -
length
-
literal
-
lowerCase
-
first
-
nodeLocalName
-
nodeName
-
path
-
not
-
or
-
propertyExistence
-
propertyInexistence
-
propertyValue
-
propertyValue
public PropertyValueImpl propertyValue(String selectorName, String propertyName, String propertyType) -
sameNode
-
sameNodeJoinCondition
public SameNodeJoinConditionImpl sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path) -
selector
-
upperCase
-
in
-
nativeFunction
public NativeFunctionImpl nativeFunction(String selectorName, String language, StaticOperandImpl expression) -
similar
-
spellcheck
-
suggest
-
copyElementAndCheckReference
@NotNull public static @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyElementAndCheckReference(@NotNull @NotNull org.apache.jackrabbit.oak.query.ast.AstElement e) as the
AstElement.copyOf()
can returnthis
is the cloning is not implemented by the subclass, this method add some spice around it by checking for this case and tracking a DEBUG message in the logs.- Parameters:
e
- the element to be cloned. Cannot be null.- Returns:
- same as
AstElement.copyOf()
-