Record Class BaseConnectorTest.SetColumnTypeSetup

java.lang.Object
java.lang.Record
io.trino.testing.BaseConnectorTest.SetColumnTypeSetup
Enclosing class:
BaseConnectorTest

public static record BaseConnectorTest.SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral, boolean unsupportedType) extends Record
  • Constructor Details

    • SetColumnTypeSetup

      public SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType)
    • SetColumnTypeSetup

      public SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral)
    • SetColumnTypeSetup

      public SetColumnTypeSetup(String sourceColumnType, String sourceValueLiteral, String newColumnType, String newValueLiteral, boolean unsupportedType)
      Creates an instance of a SetColumnTypeSetup record class.
      Parameters:
      sourceColumnType - the value for the sourceColumnType record component
      sourceValueLiteral - the value for the sourceValueLiteral record component
      newColumnType - the value for the newColumnType record component
      newValueLiteral - the value for the newValueLiteral record component
      unsupportedType - the value for the unsupportedType record component
  • Method Details

    • withNewValueLiteral

      public BaseConnectorTest.SetColumnTypeSetup withNewValueLiteral(String newValueLiteral)
    • asUnsupported

      public BaseConnectorTest.SetColumnTypeSetup asUnsupported()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sourceColumnType

      public String sourceColumnType()
      Returns the value of the sourceColumnType record component.
      Returns:
      the value of the sourceColumnType record component
    • sourceValueLiteral

      public String sourceValueLiteral()
      Returns the value of the sourceValueLiteral record component.
      Returns:
      the value of the sourceValueLiteral record component
    • newColumnType

      public String newColumnType()
      Returns the value of the newColumnType record component.
      Returns:
      the value of the newColumnType record component
    • newValueLiteral

      public String newValueLiteral()
      Returns the value of the newValueLiteral record component.
      Returns:
      the value of the newValueLiteral record component
    • unsupportedType

      public boolean unsupportedType()
      Returns the value of the unsupportedType record component.
      Returns:
      the value of the unsupportedType record component