Class ColumnImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.ast.ColumnImpl
-
- Direct Known Subclasses:
FacetColumnImpl
public class ColumnImpl extends Object
A result column expression.
-
-
Constructor Summary
Constructors Constructor Description ColumnImpl(String selectorName, String propertyName, String columnName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindSelector(SourceImpl source)
protected PropertyValue
convertValueToType(PropertyValue v, PropertyValue targetType)
org.apache.jackrabbit.oak.query.ast.AstElement
copyOf()
PropertyValue
currentProperty()
String
getColumnName()
protected String
getLocalPath(String path)
Calculate the session local path (the path excluding the workspace name) if possible.String
getPropertyName()
SelectorImpl
getSelector()
protected String
normalizePath(String path)
Validate and normalize the path.protected String
normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping).protected String
protect(Object expression)
protected static String
quote(String pathOrName)
protected static String
quoteJson(String string)
void
setQuery(QueryImpl query)
String
toString()
-
-
-
Field Detail
-
query
protected QueryImpl query
-
-
Method Detail
-
getColumnName
public String getColumnName()
-
getPropertyName
public String getPropertyName()
-
currentProperty
public PropertyValue currentProperty()
-
bindSelector
public void bindSelector(SourceImpl source)
-
getSelector
public SelectorImpl getSelector()
-
copyOf
public org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
- Returns:
- a clone of self. Default implementation in
AstElement
returns same reference tothis
.
-
setQuery
public void setQuery(QueryImpl query)
-
normalizePropertyName
protected String normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping). Asterisks are kept.- Parameters:
propertyName
- the property name to normalize- Returns:
- the normalized (oak-) property name
-
normalizePath
protected String normalizePath(String path)
Validate and normalize the path.- Parameters:
path
- the path to validate- Returns:
- the validated and normalized path
-
convertValueToType
protected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
-
-