Record Class SupportsPushDownJoin.ColumnWithAlias
- Enclosing interface:
- SupportsPushDownJoin
public static record SupportsPushDownJoin.ColumnWithAlias(String colName, String alias)
extends Record
A helper class used when there are duplicated names coming from 2 sides of the join
operator.
Holds information of original output name and the alias of the new output.
Holds information of original output name and the alias of the new output.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnWithAlias(String colName, String alias) Creates an instance of aColumnWithAliasrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.colName()Returns the value of thecolNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnWithAlias
Creates an instance of aColumnWithAliasrecord class.- Parameters:
colName- the value for thecolNamerecord componentalias- the value for thealiasrecord component
-
-
Method Details
-
prettyString
-
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). -
colName
Returns the value of thecolNamerecord component.- Returns:
- the value of the
colNamerecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-