Class OrderingImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.ast.OrderingImpl
-
public class OrderingImpl extends Object
An element of an "order by" list. This includes whether this element should be sorted in ascending or descending order.
-
-
Constructor Summary
Constructors Constructor Description OrderingImpl(DynamicOperandImpl operand, Order order)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyValueconvertValueToType(PropertyValue v, PropertyValue targetType)@NotNull org.apache.jackrabbit.oak.query.ast.AstElementcopyOf()OrderingImplcreateCopy()protected StringgetLocalPath(String path)Calculate the session local path (the path excluding the workspace name) if possible.DynamicOperandImplgetOperand()booleanisDescending()protected StringnormalizePath(String path)Validate and normalize the path.protected StringnormalizePropertyName(String propertyName)Normalize the property name (including namespace remapping).protected Stringprotect(Object expression)protected static Stringquote(String pathOrName)protected static StringquoteJson(String string)voidsetQuery(QueryImpl query)StringtoString()
-
-
-
Field Detail
-
query
protected QueryImpl query
-
-
Constructor Detail
-
OrderingImpl
public OrderingImpl(DynamicOperandImpl operand, Order order)
-
-
Method Detail
-
getOperand
public DynamicOperandImpl getOperand()
-
isDescending
public boolean isDescending()
-
createCopy
public OrderingImpl createCopy()
-
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)
-
getLocalPath
protected String getLocalPath(String path)
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
-
copyOf
@NotNull public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
- Returns:
- a clone of self. Default implementation in
AstElementreturns same reference tothis.
-
-