public class JdbcCatalog extends AbstractCatalog
Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException, Catalog.DatabaseAlreadyExistException, Catalog.DatabaseNotEmptyException, Catalog.DatabaseNotExistException, Catalog.Loader, Catalog.PartitionNotExistException, Catalog.ProcessSystemDatabaseException, Catalog.TableAlreadyExistException, Catalog.TableNotExistException| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_PREFIX |
catalogOptions, fileIO, lineageMetaFactory, tableDefaultOptionsCOMMENT_PROP, DB_LOCATION_PROP, DB_SUFFIX, DEFAULT_DATABASE, SYSTEM_BRANCH_PREFIX, SYSTEM_DATABASE_NAME, SYSTEM_TABLE_SPLITTER, TABLE_DEFAULT_OPTION_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
JdbcCatalog(FileIO fileIO,
String catalogKey,
Options options,
String warehouse) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowUpperCase()
Return a boolean that indicates whether this catalog allow upper case.
|
protected void |
alterTableImpl(Identifier identifier,
List<SchemaChange> changes) |
void |
close() |
protected void |
createDatabaseImpl(String name,
Map<String,String> properties) |
protected void |
createTableImpl(Identifier identifier,
Schema schema) |
Optional<CatalogLockFactory> |
defaultLockFactory() |
protected void |
dropDatabaseImpl(String name) |
protected void |
dropTableImpl(Identifier identifier) |
JdbcClientPool |
getConnections() |
protected TableSchema |
getDataTableSchema(Identifier identifier) |
List<String> |
listDatabases()
Get the names of all databases in this catalog.
|
protected List<String> |
listTablesImpl(String databaseName) |
protected Map<String,String> |
loadDatabasePropertiesImpl(String databaseName) |
Optional<CatalogLockContext> |
lockContext()
Get lock context for lock factory to create a lock.
|
protected void |
renameTableImpl(Identifier fromTable,
Identifier toTable) |
String |
warehouse()
Warehouse root path containing all database directories in this catalog.
|
allTablePaths, alterTable, assertMainBranch, checkNotBranch, checkNotSystemDatabase, checkNotSystemTable, createDatabase, createTable, dropDatabase, dropPartition, dropTable, fileIO, getFormatTable, getTable, getTableLocation, isSpecifiedSystemTable, isSystemDatabase, isSystemTable, listDatabasesInFileSystem, listTables, listTablesInFileSystem, loadDatabaseProperties, lockEnabled, lockFactory, newDatabasePath, newDatabasePath, newTableLocation, options, renameTable, tableExistsInFileSystem, tableSchemaInFileSystem, validateFieldNameCaseInsensitive, validateIdentifierNameCaseInsensitiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTable, createDatabase, databaseExists, invalidateTable, metastoreClientFactory, repairCatalog, repairDatabase, repairTable, tableDefaultOptions, tableExists, validateCaseInsensitive, validateCaseInsensitivepublic static final String PROPERTY_PREFIX
@VisibleForTesting public JdbcClientPool getConnections()
public String warehouse()
Catalogpublic List<String> listDatabases()
Catalogprotected Map<String,String> loadDatabasePropertiesImpl(String databaseName) throws Catalog.DatabaseNotExistException
loadDatabasePropertiesImpl in class AbstractCatalogCatalog.DatabaseNotExistExceptionprotected void createDatabaseImpl(String name, Map<String,String> properties)
createDatabaseImpl in class AbstractCatalogprotected void dropDatabaseImpl(String name)
dropDatabaseImpl in class AbstractCatalogprotected List<String> listTablesImpl(String databaseName)
listTablesImpl in class AbstractCatalogprotected void dropTableImpl(Identifier identifier)
dropTableImpl in class AbstractCatalogprotected void createTableImpl(Identifier identifier, Schema schema)
createTableImpl in class AbstractCatalogprotected void renameTableImpl(Identifier fromTable, Identifier toTable)
renameTableImpl in class AbstractCatalogprotected void alterTableImpl(Identifier identifier, List<SchemaChange> changes) throws Catalog.TableNotExistException, Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException
alterTableImpl in class AbstractCatalogCatalog.TableNotExistExceptionCatalog.ColumnAlreadyExistExceptionCatalog.ColumnNotExistExceptionprotected TableSchema getDataTableSchema(Identifier identifier) throws Catalog.TableNotExistException
getDataTableSchema in class AbstractCatalogCatalog.TableNotExistExceptionpublic boolean allowUpperCase()
CatalogallowUpperCase in interface CatalogallowUpperCase in class AbstractCatalogpublic Optional<CatalogLockFactory> defaultLockFactory()
defaultLockFactory in class AbstractCatalogpublic Optional<CatalogLockContext> lockContext()
CataloglockContext in interface CataloglockContext in class AbstractCatalogCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.