public class HBaseMetaHook extends Object implements HiveMetaHook, Closeable
allowedAlterTypes, ALTER_TABLE_OPERATION_TYPE| Constructor and Description |
|---|
HBaseMetaHook(org.apache.hadoop.conf.Configuration hbaseConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commitCreateTable(org.apache.hadoop.hive.metastore.api.Table table)
Called after successfully adding a new table definition to the metastore
during CREATE TABLE.
|
void |
commitDropTable(org.apache.hadoop.hive.metastore.api.Table tbl,
boolean deleteData)
Called after successfully removing a table definition from the metastore
during DROP TABLE.
|
void |
preCreateTable(org.apache.hadoop.hive.metastore.api.Table tbl)
Called before a new table definition is added to the metastore
during CREATE TABLE.
|
void |
preDropTable(org.apache.hadoop.hive.metastore.api.Table table)
Called before a table definition is removed from the metastore
during DROP TABLE.
|
void |
rollbackCreateTable(org.apache.hadoop.hive.metastore.api.Table table)
Called after failure adding a new table definition to the metastore
during CREATE TABLE.
|
void |
rollbackDropTable(org.apache.hadoop.hive.metastore.api.Table table)
Called after failure removing a table definition from the metastore
during DROP TABLE.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreAlterTablepublic HBaseMetaHook(org.apache.hadoop.conf.Configuration hbaseConf)
public void preDropTable(org.apache.hadoop.hive.metastore.api.Table table)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookpreDropTable in interface HiveMetaHooktable - table definitionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void rollbackDropTable(org.apache.hadoop.hive.metastore.api.Table table)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookrollbackDropTable in interface HiveMetaHooktable - table definitionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void commitDropTable(org.apache.hadoop.hive.metastore.api.Table tbl,
boolean deleteData)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookcommitDropTable in interface HiveMetaHooktbl - table definitiondeleteData - whether to delete data as well; this should typically
be ignored in the case of an external tableorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void preCreateTable(org.apache.hadoop.hive.metastore.api.Table tbl)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookpreCreateTable in interface HiveMetaHooktbl - new table definitionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void rollbackCreateTable(org.apache.hadoop.hive.metastore.api.Table table)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookrollbackCreateTable in interface HiveMetaHooktable - new table definitionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void commitCreateTable(org.apache.hadoop.hive.metastore.api.Table table)
throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHookcommitCreateTable in interface HiveMetaHooktable - new table definitionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.