public final class HiveTableName extends TableName
TableName.| Constructor and Description |
|---|
HiveTableName(String catName,
String dbName,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
static TableName |
of(String dbTableName)
Accepts qualified name which is in the form of table, dbname.tablename or catalog.dbname.tablename and returns a
TableName. |
static TableName |
of(Table table)
|
static TableName |
ofNullable(String dbTableName)
Deprecated.
|
static TableName |
ofNullable(String dbTableName,
String defaultDb)
Deprecated.
|
static TableName |
ofNullableWithNoDefault(String dbTableName)
Deprecated.
|
static Table |
setFrom(String dbTable,
Table table)
Set a @
Table object's table and db names based on the provided string. |
static TableName |
withNoDefault(String dbTableName)
Deprecated.
use
of(String) instead and use the default db/catalog. |
equals, fromString, fromString, getCat, getDb, getDbTable, getDbTable, getEscapedNotEmptyDbTable, getMetaTable, getNotEmptyDbTable, getQualified, getTable, hashCode, toStringpublic static TableName of(Table table) throws SemanticException
TableName object based on a Table. This is basically a wrapper of
TableName.fromString(String, String, String) to throw a SemanticException in case of errors.table - the tableTableNameSemanticExceptionpublic static Table setFrom(String dbTable, Table table) throws SemanticException
Table object's table and db names based on the provided string.dbTable - the dbtable stringtable - the table to updateSemanticExceptionpublic static TableName ofNullable(String dbTableName) throws SemanticException
of(String) or TableName.fromString(String, String, String)TableName. All parts can be null.dbTableName - TableNameSemanticExceptionpublic static TableName ofNullableWithNoDefault(String dbTableName) throws SemanticException
of(String) or TableName.fromString(String, String, String)TableName. All parts can be null. This method won't try to find the default db based on the session state.dbTableName - TableNameSemanticExceptionpublic static TableName ofNullable(String dbTableName, String defaultDb) throws SemanticException
of(String) or TableName.fromString(String, String, String)TableName. All parts can be null.dbTableName - defaultDb - TableNameSemanticExceptionpublic static TableName withNoDefault(String dbTableName) throws SemanticException
of(String) instead and use the default db/catalog.TableName. This method won't try to find the default db/catalog based on the session state.dbTableName - not nullTableNameSemanticException - if dbTableName is nullpublic static TableName of(String dbTableName) throws SemanticException
TableName.dbTableName - not nullTableNameSemanticException - if dbTableName is nullCopyright © 2022 The Apache Software Foundation. All rights reserved.