Class SpannerTableName

java.lang.Object
io.github.flink.gcp.connector.spanner.SpannerTableName
All Implemented Interfaces:
Serializable

@Internal public final class SpannerTableName extends Object implements Serializable
A table name as rendered for Spanner APIs and compared with INFORMATION_SCHEMA.
See Also:
  • 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

      public String apiName()
      Returns the name passed to Spanner data APIs.
    • schema

      public String schema()
      Returns the schema spelling exposed by INFORMATION_SCHEMA.
    • table

      public String table()
      Returns the table spelling exposed by INFORMATION_SCHEMA.
    • matchesNativeApiName

      public boolean matchesNativeApiName(String nativeApiName)
      Returns whether a native API table name identifies this table.
    • accessPath

      public SpannerTableName.AccessPathName accessPath(String value, String option)
      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

      public static String nativeApiKey(String apiName, com.google.cloud.spanner.Dialect dialect)
      Returns a dialect-aware key for a table name carried by a mutation.
    • catalogIdentifierKey

      public static String catalogIdentifierKey(String value, com.google.cloud.spanner.Dialect dialect)
      Returns a dialect-aware key for one identifier from a catalog row.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object