public class FirstImpl extends DynamicOperandImpl
Constructor and Description |
---|
FirstImpl(DynamicOperandImpl operand) |
Modifier and Type | Method and Description |
---|---|
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() |
DynamicOperandImpl |
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.
|
DynamicOperandImpl |
getOperand() |
QueryIndex.OrderEntry |
getOrderEntry(SelectorImpl s,
OrderingImpl o)
Create an entry for the "order by" list for a given filter.
|
PropertyExistenceImpl |
getPropertyExistence()
Get the property existence condition for this operand, if this operand is
used as part of a condition.
|
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) |
java.lang.String |
toString() |
equals, getOrderEntryPropertyName, hashCode, supportsRangeConditions
protected QueryImpl query
public FirstImpl(DynamicOperandImpl operand)
public DynamicOperandImpl getOperand()
public java.lang.String toString()
toString
in class java.lang.Object
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 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 DynamicOperandImpl createCopy()
createCopy
in class DynamicOperandImpl
public QueryIndex.OrderEntry getOrderEntry(SelectorImpl s, OrderingImpl o)
DynamicOperandImpl
getOrderEntry
in class DynamicOperandImpl
s
- the selectoro
- the orderingprotected 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.