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.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-