Class TableName
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.TableName
Represents a parsed table name that is specified in a FROM clause (and other places).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TableName
Full table name with path.static TableName
Table name plus the path up to but not including table name.getPath()
Table path up to the leaf table name.First element in the path.abstract String
Table name, the last element of the fully-specified table name with path.boolean
Whether it's a compound table name (with multiple path components).boolean
isSimple()
Whether it's a simple name, with a single name component.Remove prefix, e.g.
-
Constructor Details
-
TableName
public TableName()
-
-
Method Details
-
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
Table name, the last element of the fully-specified table name with path. -
create
Full table name with path. -
create
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
First element in the path. -
removePrefix
Remove prefix, e.g. this is helpful when stripping the top-level schema to register a table name with a provider.
-