Class SpannerTableSchemaConverter
java.lang.Object
io.github.flink.gcp.connector.spanner.table.SpannerTableSchemaConverter
- All Implemented Interfaces:
Serializable
The physical DDL schema and its corresponding native Spanner types.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne physical column. -
Method Summary
Modifier and TypeMethodDescriptionbooleanint[]inthashCode()booleanstatic SpannerTableSchemaConverterof(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, List<String> uuidPaths, List<String> generatedColumns, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema, including the columns Spanner generates.static SpannerTableSchemaConverterof(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, List<String> uuidPaths, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema, including native UUID markers.static SpannerTableSchemaConverterof(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema.
-
Method Details
-
of
public static SpannerTableSchemaConverter of(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema. -
of
public static SpannerTableSchemaConverter of(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, List<String> uuidPaths, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema, including native UUID markers. -
of
public static SpannerTableSchemaConverter of(org.apache.flink.table.types.logical.RowType rowType, int[] primaryKeyIndexes, com.google.cloud.spanner.Dialect dialect, List<String> jsonPaths, List<String> uuidPaths, List<String> generatedColumns, Map<String, String> protoTypes, Map<String, String> enumTypes) Parses and validates one physical table schema, including the columns Spanner generates. Those are read like any column and left out of written mutations, since Spanner refuses a value for a generated column; a generated key column still keys a delete. -
getColumns
-
getPrimaryKeyIndexes
public int[] getPrimaryKeyIndexes() -
hasPrimaryKey
public boolean hasPrimaryKey() -
equals
-
hashCode
public int hashCode()
-