public class PropertyValueImpl extends DynamicOperandImpl
Constructor and Description |
---|
PropertyValueImpl(java.lang.String selectorName,
java.lang.String propertyName) |
PropertyValueImpl(java.lang.String selectorName,
java.lang.String propertyName,
java.lang.String propertyType) |
Modifier and Type | Method and Description |
---|---|
void |
bindSelector(SourceImpl source) |
boolean |
canRestrictSelector(SelectorImpl s)
Check whether the condition can be applied to a selector (to restrict the
selector).
|
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
@NotNull org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
PropertyValueImpl |
createCopy() |
PropertyValue |
currentProperty() |
java.lang.String |
getFunction(SelectorImpl s)
Get the function of a function-based index, in Polish notation.
|
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
QueryIndex.OrderEntry |
getOrderEntry(SelectorImpl s,
OrderingImpl o)
Create an entry for the "order by" list for a given filter.
|
java.lang.String |
getOrderEntryPropertyName(SelectorImpl s) |
PropertyExistenceImpl |
getPropertyExistence()
Get the property existence condition for this operand, if this operand is
used as part of a condition.
|
java.lang.String |
getPropertyName() |
java.lang.String |
getSelectorName() |
java.util.Set<SelectorImpl> |
getSelectors()
Get the set of selectors for this operand.
|
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,
Operator operator,
PropertyValue v)
Apply a restriction of type "this = value" to the given filter.
|
void |
restrictList(FilterImpl f,
java.util.List<PropertyValue> list)
Apply a restriction of type "this in (list)" to the given filter.
|
void |
setQuery(QueryImpl query) |
boolean |
supportsRangeConditions() |
java.lang.String |
toString() |
equals, hashCode
protected QueryImpl query
public PropertyValueImpl(java.lang.String selectorName, java.lang.String propertyName)
public PropertyValueImpl(java.lang.String selectorName, java.lang.String propertyName, java.lang.String propertyType)
public java.lang.String getSelectorName()
public java.lang.String getPropertyName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean supportsRangeConditions()
supportsRangeConditions
in class DynamicOperandImpl
public PropertyExistenceImpl getPropertyExistence()
DynamicOperandImpl
getPropertyExistence
in class DynamicOperandImpl
public java.util.Set<SelectorImpl> getSelectors()
DynamicOperandImpl
getSelectors
in class DynamicOperandImpl
public PropertyValue currentProperty()
currentProperty
in class DynamicOperandImpl
public void bindSelector(SourceImpl source)
public void restrict(FilterImpl f, Operator operator, PropertyValue v)
DynamicOperandImpl
restrict
in class DynamicOperandImpl
f
- the filter where the restriction is applied.operator
- the operator (for example "=").v
- the valuepublic void restrictList(FilterImpl f, java.util.List<PropertyValue> list)
DynamicOperandImpl
restrictList
in class DynamicOperandImpl
f
- the filter where the restriction is applied.list
- the list of valuespublic java.lang.String getFunction(SelectorImpl s)
DynamicOperandImpl
getFunction
in class DynamicOperandImpl
s
- the selectorpublic boolean canRestrictSelector(SelectorImpl s)
DynamicOperandImpl
canRestrictSelector
in class DynamicOperandImpl
s
- the selectorpublic PropertyValueImpl createCopy()
createCopy
in class DynamicOperandImpl
public QueryIndex.OrderEntry getOrderEntry(SelectorImpl s, OrderingImpl o)
DynamicOperandImpl
getOrderEntry
in class DynamicOperandImpl
s
- the selectoro
- the orderingpublic java.lang.String getOrderEntryPropertyName(SelectorImpl s)
getOrderEntryPropertyName
in class DynamicOperandImpl
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 path@NotNull public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.