java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.model.TypeCode
All Implemented Interfaces:
Serializable

@DefaultCoder(AvroCoder.class) public class TypeCode extends Object implements Serializable
Represents a type of a column within Cloud Spanner. The type itself is encoded in a String code.
See Also:
  • Constructor Details

    • TypeCode

      public TypeCode(String code)
      Constructs a type code from the given String code.
      Parameters:
      code - the code of the column type
  • Method Details

    • getCode

      public String getCode()
      Returns the type code of the column.
      Returns:
      the type code of the column
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object