Class TableName

java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.TableName

public abstract class TableName extends Object
Represents a parsed table name that is specified in a FROM clause (and other places).
  • Constructor Details

    • TableName

      public TableName()
  • Method Details

    • getPath

      public abstract List<String> getPath()
      Table path up to the leaf table name.

      Does not necessarily start from a schema name.

      Does not include the actual table name, see getTableName().

    • getTableName

      public abstract String getTableName()
      Table name, the last element of the fully-specified table name with path.
    • create

      public static TableName create(List<String> fullPath)
      Full table name with path.
    • create

      public static TableName create(List<String> path, String tableName)
      Table name plus the path up to but not including table name.
    • isCompound

      public boolean isCompound()
      Whether it's a compound table name (with multiple path components).
    • isSimple

      public boolean isSimple()
      Whether it's a simple name, with a single name component.
    • getPrefix

      public String getPrefix()
      First element in the path.
    • removePrefix

      public TableName removePrefix()
      Remove prefix, e.g. this is helpful when stripping the top-level schema to register a table name with a provider.