Record Class ParserUtils.Stats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.parser.ParserUtils.Stats
- Enclosing class:
ParserUtils
public static record ParserUtils.Stats(List<Expression> groupings, List<? extends NamedExpression> aggregates)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStats(List<Expression> groupings, List<? extends NamedExpression> aggregates) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends NamedExpression> Returns the value of theaggregatesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupingsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
Creates an instance of aStatsrecord class.- Parameters:
groupings- the value for thegroupingsrecord componentaggregates- the value for theaggregatesrecord 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). -
groupings
Returns the value of thegroupingsrecord component.- Returns:
- the value of the
groupingsrecord component
-
aggregates
Returns the value of theaggregatesrecord component.- Returns:
- the value of the
aggregatesrecord component
-