Class DescendantNodeJoinConditionImpl
java.lang.Object
org.apache.jackrabbit.oak.query.ast.JoinConditionImpl
org.apache.jackrabbit.oak.query.ast.DescendantNodeJoinConditionImpl
The "isdescendantnode(...)" join condition.
-
Field Summary
FieldsFields inherited from class org.apache.jackrabbit.oak.query.ast.JoinConditionImpl
KNOWN_PARENT_PATH, KNOWN_PATH, KNOWN_VALUE, SPECIAL_PATH_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionDescendantNodeJoinConditionImpl(String descendantSelectorName, String ancestorSelectorName) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindSelector(SourceImpl source) booleancanEvaluate(Set<SourceImpl> available) Whether the join condition can be evaluated if the given selectors are able to retrieve data.protected PropertyValueconvertValueToType(PropertyValue v, PropertyValue targetType) org.apache.jackrabbit.oak.query.ast.AstElementcopyOf()booleanevaluate()Evaluate the result using the currently set values.protected StringgetLocalPath(String path) Calculate the session local path (the path excluding the workspace name) if possible.booleanisParent(SourceImpl source) Check whether the given source is the parent of the join condition, as selector "[b]" is the parent of the join condition "isdescendantnode([a], [b])".protected StringnormalizePath(String path) Validate and normalize the path.protected StringnormalizePropertyName(String propertyName) Normalize the property name (including namespace remapping).protected Stringprotected static Stringprotected static StringvoidApply the condition to the filter, further restricting the filter if possible.voidPush as much of the condition down to this selector, further restricting the selector condition if possible.voidtoString()
-
Field Details
-
query
-
-
Constructor Details
-
DescendantNodeJoinConditionImpl
-
-
Method Details
-
toString
-
bindSelector
-
evaluate
public boolean evaluate()Description copied from class:JoinConditionImplEvaluate the result using the currently set values.- Specified by:
evaluatein classJoinConditionImpl- Returns:
- true if the constraint matches
-
restrict
Description copied from class:JoinConditionImplApply the condition to the filter, further restricting the filter if possible. This may also verify the data types are compatible, and that paths are valid.- Specified by:
restrictin classJoinConditionImpl- Parameters:
f- the filter
-
restrictPushDown
Description copied from class:JoinConditionImplPush as much of the condition down to this selector, further restricting the selector condition if possible.- Specified by:
restrictPushDownin classJoinConditionImpl- Parameters:
s- the selector
-
isParent
Description copied from class:JoinConditionImplCheck whether the given source is the parent of the join condition, as selector "[b]" is the parent of the join condition "isdescendantnode([a], [b])".- Specified by:
isParentin classJoinConditionImpl- Parameters:
source- the source- Returns:
- true if the source is the parent
-
canEvaluate
Description copied from class:JoinConditionImplWhether the join condition can be evaluated if the given selectors are able to retrieve data.- Specified by:
canEvaluatein classJoinConditionImpl- Parameters:
available- the available selectors- Returns:
- true if the condition can be evaluated
-
copyOf
public org.apache.jackrabbit.oak.query.ast.AstElement copyOf()- Returns:
- a clone of self. Default implementation in
AstElementreturns same reference tothis.
-
protect
-
quote
-
quoteJson
-
setQuery
-
normalizePropertyName
Normalize the property name (including namespace remapping). Asterisks are kept.- Parameters:
propertyName- the property name to normalize- Returns:
- the normalized (oak-) property name
-
normalizePath
Validate and normalize the path.- Parameters:
path- the path to validate- Returns:
- the validated and normalized path
-
convertValueToType
-
getLocalPath
Calculate the session local path (the path excluding the workspace name) if possible.- Parameters:
path- the absolute path- Returns:
- the session local path, or null if not within this workspace
-