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

@DefaultCoder(AvroCoder.class) public class ColumnType extends Object implements Serializable
Defines a column type from a Cloud Spanner table with the following information: column name, column type, flag indicating if column is primary key and column position in the table.
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      The name of the column.
    • getType

      public TypeCode getType()
      The type of the column.
    • isPrimaryKey

      public boolean isPrimaryKey()
      True if the column is part of the primary key, false otherwise.
    • getOrdinalPosition

      public long getOrdinalPosition()
      The position of the column in the table.
    • 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