Class TypeCode

  • All Implemented Interfaces:
    java.io.Serializable

    @DefaultCoder(org.apache.beam.sdk.coders.AvroCoder.class)
    public class TypeCode
    extends java.lang.Object
    implements java.io.Serializable
    Represents a type of a column within Cloud Spanner. The type itself is encoded in a String code.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeCode​(java.lang.String code)
      Constructs a type code from the given String code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getCode()
      Returns the type code of the column.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TypeCode

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

      • getCode

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

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object