Class SpannerTableName
java.lang.Object
io.github.flink.gcp.connector.spanner.SpannerTableName
- All Implemented Interfaces:
Serializable
A table name as rendered for Spanner APIs and compared with
INFORMATION_SCHEMA.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe name of one table-local access path, such as an index. -
Method Summary
Modifier and TypeMethodDescriptionaccessPath(String value, String option) Resolves an unqualified access-path option in this table's schema.apiName()Returns the name passed to Spanner data APIs.static StringcatalogIdentifierKey(String value, com.google.cloud.spanner.Dialect dialect) Returns a dialect-aware key for one identifier from a catalog row.static StringcatalogKey(String schema, String table, com.google.cloud.spanner.Dialect dialect) Returns a dialect-aware key for a catalog row.booleaninthashCode()Returns the schema segment for lineage.booleanmatchesNativeApiName(String nativeApiName) Returns whether a native API table name identifies this table.static StringnativeApiKey(String apiName, com.google.cloud.spanner.Dialect dialect) Returns a dialect-aware key for a table name carried by a mutation.static SpannerTableNameCreates a name from the Table API options.schema()Returns the schema spelling exposed byINFORMATION_SCHEMA.table()Returns the table spelling exposed byINFORMATION_SCHEMA.
-
Method Details
-
of
public static SpannerTableName of(@Nullable String schema, String table, com.google.cloud.spanner.Dialect dialect) Creates a name from the Table API options. -
apiName
Returns the name passed to Spanner data APIs. -
schema
Returns the schema spelling exposed byINFORMATION_SCHEMA. -
table
Returns the table spelling exposed byINFORMATION_SCHEMA. -
lineageSchema
Returns the schema segment for lineage. Legacy native API names may already include their schema; keep that complete name in the table segment instead of prepending a default schema. -
matchesNativeApiName
Returns whether a native API table name identifies this table. -
accessPath
Resolves an unqualified access-path option in this table's schema. -
catalogKey
public static String catalogKey(String schema, String table, com.google.cloud.spanner.Dialect dialect) Returns a dialect-aware key for a catalog row. -
nativeApiKey
Returns a dialect-aware key for a table name carried by a mutation. -
catalogIdentifierKey
Returns a dialect-aware key for one identifier from a catalog row. -
equals
-
hashCode
public int hashCode()
-