public interface SupportsBranches extends Catalog
Catalog
supports creating and dropping table branches.Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException, Catalog.DatabaseAlreadyExistException, Catalog.DatabaseNoPermissionException, Catalog.DatabaseNotEmptyException, Catalog.DatabaseNotExistException, Catalog.ProcessSystemDatabaseException, Catalog.TableAlreadyExistException, Catalog.TableNoPermissionException, Catalog.TableNotExistException, Catalog.ViewAlreadyExistException, Catalog.ViewNotExistException
COMMENT_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
Modifier and Type | Method and Description |
---|---|
void |
createBranch(Identifier identifier,
String branch,
String fromTag)
Create a new branch for this table.
|
void |
dropBranch(Identifier identifier,
String branch)
Drop the branch for this table.
|
void |
fastForward(Identifier identifier,
String branch)
Fast-forward a branch to main branch.
|
List<String> |
listBranches(Identifier identifier)
List all branches of the table.
|
alterDatabase, alterPartitions, alterTable, alterTable, caseSensitive, catalogLoader, createDatabase, createDatabase, createPartitions, createTable, createView, dropDatabase, dropPartitions, dropTable, dropView, getDatabase, getTable, getView, invalidateTable, listDatabases, listPartitions, listTables, listViews, markDonePartitions, options, renameTable, renameView, repairCatalog, repairDatabase, repairTable
close
void createBranch(Identifier identifier, String branch, @Nullable String fromTag) throws Catalog.TableNotExistException, Catalog.DatabaseNotExistException
#fromTag
, a branch will be created from the tag and the
data files will be inherited from it.identifier
- path of the table, cannot be system or branch name.branch
- the branch namefromTag
- from the tagTableNotExistException
- if the table in identifier doesn't existDatabaseNotExistException
- if the database in identifier doesn't existCatalog.TableNotExistException
Catalog.DatabaseNotExistException
void dropBranch(Identifier identifier, String branch) throws Catalog.TableNotExistException, Catalog.DatabaseNotExistException
identifier
- path of the table, cannot be system or branch name.branch
- the branch nameTableNotExistException
- if the table in identifier doesn't existDatabaseNotExistException
- if the database in identifier doesn't existCatalog.TableNotExistException
Catalog.DatabaseNotExistException
void fastForward(Identifier identifier, String branch) throws Catalog.TableNotExistException, Catalog.DatabaseNotExistException
identifier
- path of the table, cannot be system or branch name.branch
- the branch nameTableNotExistException
- if the table in identifier doesn't existDatabaseNotExistException
- if the database in identifier doesn't existCatalog.TableNotExistException
Catalog.DatabaseNotExistException
List<String> listBranches(Identifier identifier) throws Catalog.TableNotExistException, Catalog.DatabaseNotExistException
identifier
- path of the table, cannot be system or branch name.TableNotExistException
- if the table in identifier doesn't existDatabaseNotExistException
- if the database in identifier doesn't existCatalog.TableNotExistException
Catalog.DatabaseNotExistException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.