Package io.trino.testing
Record Class BaseConnectorTest.SetColumnTypeSetup
java.lang.Object
java.lang.Record
io.trino.testing.BaseConnectorTest.SetColumnTypeSetup
- Enclosing class:
- BaseConnectorTest
-
Constructor Summary
ConstructorsConstructorDescriptionSetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType) SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral) SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral, boolean unsupportedType) Creates an instance of aSetColumnTypeSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenewColumnTyperecord component.Returns the value of thenewValueLiteralrecord component.Returns the value of thesourceColumnTyperecord component.Returns the value of thesourceValueLiteralrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunsupportedTyperecord component.withNewValueLiteral(String newValueLiteral)
-
Constructor Details
-
SetColumnTypeSetup
-
SetColumnTypeSetup
-
SetColumnTypeSetup
public SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral, boolean unsupportedType) Creates an instance of aSetColumnTypeSetuprecord class.- Parameters:
sourceColumnType- the value for thesourceColumnTyperecord componentsourceValueLiteral- the value for thesourceValueLiteralrecord componentnewColumnType- the value for thenewColumnTyperecord componentnewValueLiteral- the value for thenewValueLiteralrecord componentunsupportedType- the value for theunsupportedTyperecord component
-
-
Method Details
-
withNewValueLiteral
-
asUnsupported
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourceColumnType
Returns the value of thesourceColumnTyperecord component.- Returns:
- the value of the
sourceColumnTyperecord component
-
sourceValueLiteral
Returns the value of thesourceValueLiteralrecord component.- Returns:
- the value of the
sourceValueLiteralrecord component
-
newColumnType
Returns the value of thenewColumnTyperecord component.- Returns:
- the value of the
newColumnTyperecord component
-
newValueLiteral
Returns the value of thenewValueLiteralrecord component.- Returns:
- the value of the
newValueLiteralrecord component
-
unsupportedType
public boolean unsupportedType()Returns the value of theunsupportedTyperecord component.- Returns:
- the value of the
unsupportedTyperecord component
-