public class AggregateValue extends TransformValue
Encapsulates an OData aggregate transformation item.
Modifier and Type | Method and Description |
---|---|
static AggregateValue |
count(java.lang.String alias)
Creates a $count aggregate transformation item.
|
static AggregateValue |
create(DataValue value,
AggregateMethod method,
java.lang.String alias)
Creates an aggregate transformation item.
|
AggregateValue |
from(PropertyPath propertyPath,
AggregateMethod method)
Adds a 'from' clause to the aggregate.
|
AggregateFromList |
getAggregateFromList()
The items in the "from" clause of the aggregate item.
|
java.lang.String |
getAlias()
(nullable) The alias of the aggregate transformation item.
|
AggregateMethod |
getMethod()
(nullable) The method of the aggregate transformation item.
|
DataValue |
getValue()
(nullable) The value of the aggregate transformation item.
|
boolean |
isCount()
True if the aggregate transformation item represents a $count item.
|
void |
setAggregateFromList(AggregateFromList value)
The items in the "from" clause of the aggregate item.
|
chain, getItems, setItems
add, add, add, add, add, add, add, all, any, asType, average, ceiling, concat, concat, contains, contains, countDistinct, date, day, divide, divide, divide, divide, divide, divide, divide, endsWith, endsWith, equal, equal, equal, equal, equal, equal, equal, equal, equal, floor, fractionalSeconds, geoDistance, geoIntersectse, geoLength, getDataType, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, has, hour, indexOf, indexOf, isNull, isType, length, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, maximum, minimum, minute, modulo, modulo, modulo, modulo, modulo, modulo, modulo, month, multiply, multiply, multiply, multiply, multiply, multiply, multiply, negate, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notNull, round, second, startsWith, startsWith, substring, substring, substring, substring, subtract, subtract, subtract, subtract, subtract, subtract, subtract, sum, time, toLower, toString, totalOffsetMinutes, toUpper, trim, unwrap, wrap, year
cloneMutable, equals, getTypeCode, hashCode
public static AggregateValue count(java.lang.String alias)
Creates a $count aggregate transformation item.
alias
- The alias for the aggregate item.public static AggregateValue create(DataValue value, AggregateMethod method, java.lang.String alias)
Creates an aggregate transformation item.
value
- (nullable) The value to be aggregated.method
- (nullable) The aggregate method to be used for aggregating.alias
- (nullable) The alias for the returned result property.public AggregateValue from(PropertyPath propertyPath, AggregateMethod method)
Adds a 'from' clause to the aggregate.
propertyPath
- The property path for the 'from' clause.method
- (nullable) The aggregate method for the 'from' clause.public AggregateFromList getAggregateFromList()
The items in the "from" clause of the aggregate item.
public java.lang.String getAlias()
(nullable) The alias of the aggregate transformation item.
public AggregateMethod getMethod()
(nullable) The method of the aggregate transformation item.
public DataValue getValue()
(nullable) The value of the aggregate transformation item.
public boolean isCount()
True if the aggregate transformation item represents a $count item.
public void setAggregateFromList(AggregateFromList value)
The items in the "from" clause of the aggregate item.