public interface CrudExternalCatalog extends ExternalCatalog
Modifier and Type | Method and Description |
---|---|
void |
alterSubCatalog(String name,
ExternalCatalog catalog,
boolean ignoreIfNotExists)
Modifies an existing sub catalog of this catalog.
|
void |
alterTable(String tableName,
ExternalCatalogTable table,
boolean ignoreIfNotExists)
Modifies an existing table of this catalog.
|
void |
createSubCatalog(String name,
ExternalCatalog catalog,
boolean ignoreIfExists)
Adds a subcatalog to this catalog.
|
void |
createTable(String tableName,
ExternalCatalogTable table,
boolean ignoreIfExists)
Adds a table to this catalog.
|
void |
dropSubCatalog(String name,
boolean ignoreIfNotExists)
Deletes a sub catalog from this catalog.
|
void |
dropTable(String tableName,
boolean ignoreIfNotExists)
Deletes table from this catalog.
|
getSubCatalog, getTable, listSubCatalogs, listTables
void createTable(String tableName, ExternalCatalogTable table, boolean ignoreIfExists) throws TableAlreadyExistException
tableName
- The name of the table to add.table
- The table to add.ignoreIfExists
- Flag to specify behavior if a table with the given name already exists:
if set to false, it throws a TableAlreadyExistException,
if set to true, nothing happens.TableAlreadyExistException
- thrown if table already exists and ignoreIfExists is falsevoid dropTable(String tableName, boolean ignoreIfNotExists) throws TableNotExistException
tableName
- Name of the table to delete.ignoreIfNotExists
- Flag to specify behavior if the table does not exist:
if set to false, throw an exception,
if set to true, nothing happens.TableNotExistException
- thrown if the table does not exist in the catalogvoid alterTable(String tableName, ExternalCatalogTable table, boolean ignoreIfNotExists) throws TableNotExistException
tableName
- The name of the table to modify.table
- The new table which replaces the existing table.ignoreIfNotExists
- Flag to specify behavior if the table does not exist:
if set to false, throw an exception,
if set to true, nothing happens.TableNotExistException
- thrown if the table does not exist in the catalogvoid createSubCatalog(String name, ExternalCatalog catalog, boolean ignoreIfExists) throws CatalogAlreadyExistException
name
- The name of the sub catalog to add.catalog
- Description of the catalog to add.ignoreIfExists
- Flag to specify behavior if a sub catalog with the given name already
exists: if set to false, it throws a CatalogAlreadyExistException,
if set to true, nothing happens.CatalogAlreadyExistException
- thrown if the sub catalog does already exist in the catalog
and ignoreIfExists is falsevoid dropSubCatalog(String name, boolean ignoreIfNotExists) throws CatalogNotExistException
name
- Name of the sub catalog to delete.ignoreIfNotExists
- Flag to specify behavior if the catalog does not exist:
if set to false, throw an exception,
if set to true, nothing happens.CatalogNotExistException
- thrown if the sub catalog does not exist in the catalogvoid alterSubCatalog(String name, ExternalCatalog catalog, boolean ignoreIfNotExists) throws CatalogNotExistException
name
- Name of the catalog to modify.catalog
- The new sub catalog to replace the existing sub catalog.ignoreIfNotExists
- Flag to specify behavior if the sub catalog does not exist:
if set to false, throw an exception,
if set to true, nothing happens.CatalogNotExistException
- thrown if the sub catalog does not exist in the catalogCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.