Record Class AggregateSpec
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.AggregateSpec
- Record Components:
type- the aggregate function typecolumnName- the column to aggregate (null for COUNT_STAR)resultType- the expected ESQL data type of the result
public record AggregateSpec(AggregateSpec.AggType type, String columnName, DataType resultType)
extends Record
Specification for a single aggregate to be computed from file-level statistics.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAggregateSpec(AggregateSpec.AggType type, String columnName, DataType resultType) Creates an instance of aAggregateSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresultTyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AggregateSpec
Creates an instance of aAggregateSpecrecord class.- Parameters:
type- the value for thetyperecord componentcolumnName- the value for thecolumnNamerecord componentresultType- the value for theresultTyperecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-