Class ColumnType
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.model.ColumnType
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionColumnType
(String name, TypeCode type, boolean isPrimaryKey, long ordinalPosition) -
Method Summary
-
Constructor Details
-
ColumnType
@SchemaCreate public ColumnType(String name, TypeCode type, boolean isPrimaryKey, long ordinalPosition)
-
-
Method Details
-
getName
The name of the column. -
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
-
hashCode
public int hashCode() -
toString
-