Class TypeCode
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.model.TypeCode
-
- All Implemented Interfaces:
java.io.Serializable
@DefaultCoder(org.apache.beam.sdk.extensions.avro.coders.AvroCoder.class) public class TypeCode extends java.lang.Object implements java.io.SerializableRepresents 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 booleanequals(java.lang.Object o)java.lang.StringgetCode()Returns the type code of the column.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-