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
ConstructorDescriptionAggregation
(AggregateFunc[] aggregateExpressions, Expression[] groupByExpressions) Creates an instance of aAggregation
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregateExpressions
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegroupByExpressions
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Aggregation
Creates an instance of aAggregation
record class.- Parameters:
aggregateExpressions
- the value for theaggregateExpressions
record componentgroupByExpressions
- the value for thegroupByExpressions
record 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 theaggregateExpressions
record component.- Returns:
- the value of the
aggregateExpressions
record component
-
groupByExpressions
Returns the value of thegroupByExpressions
record component.- Returns:
- the value of the
groupByExpressions
record component
-