public class PropertyExistenceImpl extends ConstraintImpl
Constructor and Description |
---|
PropertyExistenceImpl(SelectorImpl selector,
java.lang.String selectorName,
java.lang.String propertyName) |
PropertyExistenceImpl(java.lang.String selectorName,
java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
void |
bindSelector(SourceImpl source) |
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
boolean |
equals(java.lang.Object obj) |
boolean |
evaluate()
Evaluate the result using the currently set values.
|
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
java.util.Set<PropertyExistenceImpl> |
getPropertyExistenceConditions()
Get the set of property existence conditions that can be derived for this
condition.
|
java.util.Set<SelectorImpl> |
getSelectors()
Get the set of selectors for the given condition.
|
int |
hashCode() |
protected java.lang.String |
normalizePath(java.lang.String path)
Validate and normalize the path.
|
protected java.lang.String |
normalizePropertyName(java.lang.String propertyName)
Normalize the property name (including namespace remapping).
|
protected java.lang.String |
protect(java.lang.Object expression) |
protected java.lang.String |
quote(java.lang.String pathOrName) |
protected java.lang.String |
quoteJson(java.lang.String string) |
void |
restrict(FilterImpl f)
Apply the condition to the filter, further restricting the filter if
possible.
|
void |
restrictPushDown(SelectorImpl s)
Push as much of the condition down to this selector, further restricting
the selector condition if possible.
|
void |
setQuery(QueryImpl query) |
java.lang.String |
toString() |
containsUnfilteredFullTextCondition, convertToUnion, evaluateStop, getFullTextConstraint, requiresFullTextIndex, simplify
protected QueryImpl query
public PropertyExistenceImpl(SelectorImpl selector, java.lang.String selectorName, java.lang.String propertyName)
public PropertyExistenceImpl(java.lang.String selectorName, java.lang.String propertyName)
public boolean evaluate()
ConstraintImpl
evaluate
in class ConstraintImpl
public java.util.Set<PropertyExistenceImpl> getPropertyExistenceConditions()
ConstraintImpl
getPropertyExistenceConditions
in class ConstraintImpl
public java.util.Set<SelectorImpl> getSelectors()
ConstraintImpl
getSelectors
in class ConstraintImpl
public java.lang.String toString()
toString
in class java.lang.Object
public void bindSelector(SourceImpl source)
public void restrict(FilterImpl f)
ConstraintImpl
restrict
in class ConstraintImpl
f
- the filterpublic void restrictPushDown(SelectorImpl s)
ConstraintImpl
restrictPushDown
in class ConstraintImpl
s
- the selectorpublic int hashCode()
hashCode
in class ConstraintImpl
public boolean equals(java.lang.Object obj)
equals
in class ConstraintImpl
public org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.protected java.lang.String protect(java.lang.Object expression)
protected java.lang.String quote(java.lang.String pathOrName)
protected java.lang.String quoteJson(java.lang.String string)
public void setQuery(QueryImpl query)
protected java.lang.String normalizePropertyName(java.lang.String propertyName)
propertyName
- the property name to normalizeprotected java.lang.String normalizePath(java.lang.String path)
path
- the path to validateprotected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
protected java.lang.String getLocalPath(java.lang.String path)
path
- the absolute pathCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.