public class FileSystemCatalog extends AbstractCatalog
FileIO.Catalog.BranchAlreadyExistException, Catalog.BranchNotExistException, Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException, Catalog.DatabaseAlreadyExistException, Catalog.DatabaseNoPermissionException, Catalog.DatabaseNotEmptyException, Catalog.DatabaseNotExistException, Catalog.DialectAlreadyExistException, Catalog.DialectNotExistException, Catalog.ProcessSystemDatabaseException, Catalog.TableAlreadyExistException, Catalog.TableNoPermissionException, Catalog.TableNotExistException, Catalog.TagNotExistException, Catalog.ViewAlreadyExistException, Catalog.ViewNotExistExceptioncatalogOptions, fileIO, tableDefaultOptionsCOMMENT_PROP, DB_LOCATION_PROP, DB_SUFFIX, DEFAULT_DATABASE, LAST_UPDATE_TIME_PROP, NUM_FILES_PROP, NUM_ROWS_PROP, OWNER_PROP, SYSTEM_BRANCH_PREFIX, SYSTEM_DATABASE_NAME, SYSTEM_TABLE_SPLITTER, TABLE_DEFAULT_OPTION_PREFIX, TOTAL_SIZE_PROP| Constructor and Description |
|---|
FileSystemCatalog(FileIO fileIO,
Path warehouse) |
FileSystemCatalog(FileIO fileIO,
Path warehouse,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
alterDatabaseImpl(String name,
List<PropertyChange> changes) |
protected void |
alterTableImpl(Identifier identifier,
List<SchemaChange> changes) |
boolean |
caseSensitive()
Return a boolean that indicates whether this catalog is case-sensitive.
|
CatalogLoader |
catalogLoader()
Serializable loader to create catalog.
|
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,
List<Path> externalPaths) |
Database |
getDatabaseImpl(String name) |
List<String> |
listDatabases()
Get the names of all databases in this catalog.
|
protected List<String> |
listTablesImpl(String databaseName) |
TableSchema |
loadTableSchema(Identifier identifier) |
void |
renameTableImpl(Identifier fromTable,
Identifier toTable) |
<T> T |
runWithLock(Identifier identifier,
Callable<T> callable) |
protected static <T> T |
uncheck(Callable<T> callable) |
String |
warehouse() |
allowCustomTablePath, alterDatabase, alterPartitions, alterTable, assertMainBranch, commitSnapshot, createBranch, createDatabase, createFormatTable, createPartitions, createTable, defaultLockFactory, dropBranch, dropDatabase, dropPartitions, dropTable, fastForward, fileIO, fileIO, getDatabase, getTable, getTableLocation, listBranches, listDatabasesInFileSystem, listDatabasesPaged, listPartitions, listPartitionsPaged, listTableDetailsPaged, listTableDetailsPagedImpl, listTables, listTablesInFileSystem, listTablesPaged, loadSnapshot, loadTableMetadata, lockContext, lockEnabled, lockFactory, markDonePartitions, newDatabasePath, newDatabasePath, newTableLocation, options, renameTable, rollbackTo, supportsListObjectsPaged, supportsVersionManagement, tableExistsInFileSystem, tableSchemaInFileSystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTable, alterView, createDatabase, createView, dropView, getView, invalidateTable, listViewDetailsPaged, listViews, listViewsPaged, renameView, repairCatalog, repairDatabase, repairTablepublic List<String> listDatabases()
Catalogprotected void createDatabaseImpl(String name, Map<String,String> properties)
createDatabaseImpl in class AbstractCatalogpublic Database getDatabaseImpl(String name) throws Catalog.DatabaseNotExistException
getDatabaseImpl in class AbstractCatalogCatalog.DatabaseNotExistExceptionprotected void dropDatabaseImpl(String name)
dropDatabaseImpl in class AbstractCatalogprotected void alterDatabaseImpl(String name, List<PropertyChange> changes) throws Catalog.DatabaseNotExistException
alterDatabaseImpl in class AbstractCatalogCatalog.DatabaseNotExistExceptionprotected List<String> listTablesImpl(String databaseName)
listTablesImpl in class AbstractCatalogpublic TableSchema loadTableSchema(Identifier identifier) throws Catalog.TableNotExistException
loadTableSchema in class AbstractCatalogCatalog.TableNotExistExceptionprotected void dropTableImpl(Identifier identifier, List<Path> externalPaths)
dropTableImpl in class AbstractCatalogpublic void createTableImpl(Identifier identifier, Schema schema)
createTableImpl in class AbstractCatalogpublic <T> T runWithLock(Identifier identifier, Callable<T> callable) throws Exception
Exceptionpublic 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()
warehouse in class AbstractCatalogpublic CatalogLoader catalogLoader()
Catalogpublic boolean caseSensitive()
CatalogCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.