Interface AggregateExpression
- All Superinterfaces:
Expression
,VisitableExpression
Represents an aggregate expression.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Standard aggregation method. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicProperty
(String name) Adds the dynamic property for aggregation expression.getAlias()
Gets the name of the aggregate if an alias name has been set.Gets the name of the custom aggregation method if used.Gets the dynamic properties for aggregation expression.Gets the common expression to be aggregated.getFrom()
Gets the aggregate expressions forfrom
.Gets the inline aggregation expression to be applied to the target of the path if used.getPath()
Gets the path prefix and the path segment.Gets the standard aggregation method if used.Methods inherited from interface org.apache.olingo.server.api.uri.queryoption.expression.VisitableExpression
accept
-
Method Details
-
getPath
List<UriResource> getPath()Gets the path prefix and the path segment.- Returns:
- a (potentially empty) list of path segments (and never
null
)
-
getExpression
Expression getExpression()Gets the common expression to be aggregated.- Returns:
- an
Expression
that could benull
-
getStandardMethod
AggregateExpression.StandardMethod getStandardMethod()Gets the standard aggregation method if used.- Returns:
- a
AggregateExpression.StandardMethod
ornull
- See Also:
-
getCustomMethod
FullQualifiedName getCustomMethod()Gets the name of the custom aggregation method if used.- Returns:
- a
FullQualifiedName
ornull
- See Also:
-
getAlias
String getAlias()Gets the name of the aggregate if an alias name has been set.- Returns:
- an identifier String or
null
-
getInlineAggregateExpression
AggregateExpression getInlineAggregateExpression()Gets the inline aggregation expression to be applied to the target of the path if used.- Returns:
- an aggregation expression or
null
- See Also:
-
getFrom
List<AggregateExpression> getFrom()Gets the aggregate expressions forfrom
.- Returns:
- a (potentially empty) list of aggregate expressions (but never
null
)
-
getDynamicProperties
Gets the dynamic properties for aggregation expression.- Returns:
- the set of properties
-
addDynamicProperty
Adds the dynamic property for aggregation expression.- Parameters:
name
- an identifier
-