@InterfaceAudience.Public
@InterfaceStability.Stable
public interface HiveMetaHook
Modifier and Type | Field and Description |
---|---|
static List<String> |
allowedAlterTypes |
static String |
ALTER_TABLE_OPERATION_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
commitCreateTable(Table table)
Called after successfully adding a new table definition to the metastore
during CREATE TABLE.
|
void |
commitDropTable(Table table,
boolean deleteData)
Called after successfully removing a table definition from the metastore
during DROP TABLE.
|
default void |
preAlterTable(Table table,
EnvironmentContext context)
Called before a table is altered in the metastore
during ALTER TABLE.
|
void |
preCreateTable(Table table)
Called before a new table definition is added to the metastore
during CREATE TABLE.
|
void |
preDropTable(Table table)
Called before a table definition is removed from the metastore
during DROP TABLE.
|
void |
rollbackCreateTable(Table table)
Called after failure adding a new table definition to the metastore
during CREATE TABLE.
|
void |
rollbackDropTable(Table table)
Called after failure removing a table definition from the metastore
during DROP TABLE.
|
static final String ALTER_TABLE_OPERATION_TYPE
void preCreateTable(Table table) throws MetaException
table
- new table definitionMetaException
void rollbackCreateTable(Table table) throws MetaException
table
- new table definitionMetaException
void commitCreateTable(Table table) throws MetaException
table
- new table definitionMetaException
void preDropTable(Table table) throws MetaException
table
- table definitionMetaException
void rollbackDropTable(Table table) throws MetaException
table
- table definitionMetaException
void commitDropTable(Table table, boolean deleteData) throws MetaException
table
- table definitiondeleteData
- whether to delete data as well; this should typically
be ignored in the case of an external tableMetaException
default void preAlterTable(Table table, EnvironmentContext context) throws MetaException
table
- new table definitionMetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.