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(Table table)
Called after successfully adding a new table definition to the metastore
during CREATE TABLE.
|
void |
commitDropTable(Table tbl,
boolean deleteData)
Called after successfully removing a table definition from the metastore
during DROP TABLE.
|
void |
preCreateTable(Table tbl)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preAlterTable
public HBaseMetaHook(org.apache.hadoop.conf.Configuration hbaseConf)
public void preDropTable(Table table) throws MetaException
HiveMetaHook
preDropTable
in interface HiveMetaHook
table
- table definitionMetaException
public void rollbackDropTable(Table table) throws MetaException
HiveMetaHook
rollbackDropTable
in interface HiveMetaHook
table
- table definitionMetaException
public void commitDropTable(Table tbl, boolean deleteData) throws 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 tableMetaException
public void preCreateTable(Table tbl) throws MetaException
HiveMetaHook
preCreateTable
in interface HiveMetaHook
tbl
- new table definitionMetaException
public void rollbackCreateTable(Table table) throws MetaException
HiveMetaHook
rollbackCreateTable
in interface HiveMetaHook
table
- new table definitionMetaException
public void commitCreateTable(Table table) throws MetaException
HiveMetaHook
commitCreateTable
in interface HiveMetaHook
table
- new table definitionMetaException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.