public class FileSystemCatalog extends AbstractCatalog
FileIO.Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException, Catalog.DatabaseAlreadyExistException, Catalog.DatabaseNotEmptyException, Catalog.DatabaseNotExistException, Catalog.Loader, Catalog.PartitionNotExistException, Catalog.ProcessSystemDatabaseException, Catalog.TableAlreadyExistException, Catalog.TableNotExistExceptioncatalogOptions, fileIO, lineageMetaFactory, tableDefaultOptionsCOMMENT_PROP, DB_LOCATION_PROP, DB_SUFFIX, DEFAULT_DATABASE, SYSTEM_BRANCH_PREFIX, SYSTEM_DATABASE_NAME, SYSTEM_TABLE_SPLITTER, TABLE_DEFAULT_OPTION_PREFIX| Constructor and Description |
|---|
FileSystemCatalog(FileIO fileIO,
Path warehouse) |
FileSystemCatalog(FileIO fileIO,
Path warehouse,
Options options) |
| 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) |
void |
createTableImpl(Identifier identifier,
Schema schema) |
protected void |
dropDatabaseImpl(String name) |
protected void |
dropTableImpl(Identifier identifier) |
TableSchema |
getDataTableSchema(Identifier identifier) |
List<String> |
listDatabases()
Get the names of all databases in this catalog.
|
protected List<String> |
listTablesImpl(String databaseName) |
Map<String,String> |
loadDatabasePropertiesImpl(String name) |
void |
renameTableImpl(Identifier fromTable,
Identifier toTable) |
boolean |
tableExists(Identifier identifier)
Check if a table exists in this catalog.
|
protected static <T> T |
uncheck(Callable<T> callable) |
String |
warehouse()
Warehouse root path containing all database directories in this catalog.
|
allTablePaths, alterTable, assertMainBranch, checkNotBranch, checkNotSystemDatabase, checkNotSystemTable, createDatabase, createTable, defaultLockFactory, dropDatabase, dropPartition, dropTable, fileIO, getFormatTable, getTable, getTableLocation, isSpecifiedSystemTable, isSystemDatabase, isSystemTable, listDatabasesInFileSystem, listTables, listTablesInFileSystem, loadDatabaseProperties, lockContext, 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, validateCaseInsensitive, validateCaseInsensitivepublic List<String> listDatabases()
Catalogprotected void createDatabaseImpl(String name, Map<String,String> properties)
createDatabaseImpl in class AbstractCatalogpublic Map<String,String> loadDatabasePropertiesImpl(String name) throws Catalog.DatabaseNotExistException
loadDatabasePropertiesImpl in class AbstractCatalogCatalog.DatabaseNotExistExceptionprotected void dropDatabaseImpl(String name)
dropDatabaseImpl in class AbstractCatalogprotected List<String> listTablesImpl(String databaseName)
listTablesImpl in class AbstractCatalogpublic boolean tableExists(Identifier identifier)
Catalogidentifier - Path of the tablepublic TableSchema getDataTableSchema(Identifier identifier) throws Catalog.TableNotExistException
getDataTableSchema in class AbstractCatalogCatalog.TableNotExistExceptionprotected void dropTableImpl(Identifier identifier)
dropTableImpl in class AbstractCatalogpublic void createTableImpl(Identifier identifier, Schema schema)
createTableImpl in class AbstractCatalogpublic 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 static <T> T uncheck(Callable<T> callable)
public String warehouse()
Catalogpublic boolean allowUpperCase()
CatalogallowUpperCase in interface CatalogallowUpperCase in class AbstractCatalogCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.