Record Class Aggregation
- All Implemented Interfaces:
Serializable
@Evolving
public record Aggregation(AggregateFunc[] aggregateExpressions, Expression[] groupByExpressions)
extends Record
implements Serializable
Aggregation in SQL statement.
- Since:
- 3.2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregation(AggregateFunc[] aggregateExpressions, Expression[] groupByExpressions) Creates an instance of aAggregationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregateExpressionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupByExpressionsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Aggregation
Creates an instance of aAggregationrecord class.- Parameters:
aggregateExpressions- the value for theaggregateExpressionsrecord componentgroupByExpressions- the value for thegroupByExpressionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
aggregateExpressions
Returns the value of theaggregateExpressionsrecord component.- Returns:
- the value of the
aggregateExpressionsrecord component
-
groupByExpressions
Returns the value of thegroupByExpressionsrecord component.- Returns:
- the value of the
groupByExpressionsrecord component
-