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 SummaryConstructorsConstructorDescriptionAggregation(AggregateFunc[] aggregateExpressions, Expression[] groupByExpressions) Creates an instance of aAggregationrecord class.
- 
Method SummaryModifier 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- 
AggregationCreates an instance of aAggregationrecord class.- Parameters:
- aggregateExpressions- the value for the- aggregateExpressionsrecord component
- groupByExpressions- the value for the- groupByExpressionsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
aggregateExpressionsReturns the value of theaggregateExpressionsrecord component.- Returns:
- the value of the aggregateExpressionsrecord component
 
- 
groupByExpressionsReturns the value of thegroupByExpressionsrecord component.- Returns:
- the value of the groupByExpressionsrecord component
 
 
-