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, wait
preAlterTable
public 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
HiveMetaHook
preDropTable
in interface HiveMetaHook
table
- table definitionorg.apache.hadoop.hive.metastore.api.MetaException
public void rollbackDropTable(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHook
rollbackDropTable
in interface HiveMetaHook
table
- table definitionorg.apache.hadoop.hive.metastore.api.MetaException
public void commitDropTable(org.apache.hadoop.hive.metastore.api.Table tbl, boolean deleteData) throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHook
commitDropTable
in interface HiveMetaHook
tbl
- 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.MetaException
public void preCreateTable(org.apache.hadoop.hive.metastore.api.Table tbl) throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHook
preCreateTable
in interface HiveMetaHook
tbl
- new table definitionorg.apache.hadoop.hive.metastore.api.MetaException
public void rollbackCreateTable(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHook
rollbackCreateTable
in interface HiveMetaHook
table
- new table definitionorg.apache.hadoop.hive.metastore.api.MetaException
public void commitCreateTable(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
HiveMetaHook
commitCreateTable
in interface HiveMetaHook
table
- new table definitionorg.apache.hadoop.hive.metastore.api.MetaException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.