Class SnowflakeHiveListener
- java.lang.Object
-
- org.apache.hadoop.hive.metastore.MetaStoreEventListener
-
- net.snowflake.hivemetastoreconnector.SnowflakeHiveListener
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
public class SnowflakeHiveListener extends org.apache.hadoop.hive.metastore.MetaStoreEventListenerThe listener for Hive This listener will get notified when the corresponding command is called
-
-
Constructor Summary
Constructors Constructor Description SnowflakeHiveListener(org.apache.hadoop.conf.Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAddPartition(org.apache.hadoop.hive.metastore.events.AddPartitionEvent partitionEvent)The listener for the add partition commandvoidonAlterPartition(org.apache.hadoop.hive.metastore.events.AlterPartitionEvent partitionEvent)The listener for the alter partition commandvoidonAlterTable(org.apache.hadoop.hive.metastore.events.AlterTableEvent tableEvent)The listener for the alter table commandvoidonCreateTable(org.apache.hadoop.hive.metastore.events.CreateTableEvent tableEvent)The listener for the create table commandvoidonDropPartition(org.apache.hadoop.hive.metastore.events.DropPartitionEvent partitionEvent)The listener for the drop partition commandvoidonDropTable(org.apache.hadoop.hive.metastore.events.DropTableEvent tableEvent)The listener for the drop table command-
Methods inherited from class org.apache.hadoop.hive.metastore.MetaStoreEventListener
getConf, onAbortTxn, onAddForeignKey, onAddNotNullConstraint, onAddPrimaryKey, onAddSchemaVersion, onAddUniqueConstraint, onAllocWriteId, onAlterCatalog, onAlterDatabase, onAlterISchema, onAlterSchemaVersion, onCommitTxn, onConfigChange, onCreateCatalog, onCreateDatabase, onCreateFunction, onCreateISchema, onDropCatalog, onDropConstraint, onDropDatabase, onDropFunction, onDropISchema, onDropSchemaVersion, onInsert, onLoadPartitionDone, onOpenTxn, setConf
-
-
-
-
Method Detail
-
onCreateTable
public void onCreateTable(org.apache.hadoop.hive.metastore.events.CreateTableEvent tableEvent)
The listener for the create table command- Overrides:
onCreateTablein classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
tableEvent- An event that was listened for
-
onDropTable
public void onDropTable(org.apache.hadoop.hive.metastore.events.DropTableEvent tableEvent)
The listener for the drop table command- Overrides:
onDropTablein classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
tableEvent- An event that was listened for
-
onAddPartition
public void onAddPartition(org.apache.hadoop.hive.metastore.events.AddPartitionEvent partitionEvent)
The listener for the add partition command- Overrides:
onAddPartitionin classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
partitionEvent- An event that was listened for
-
onDropPartition
public void onDropPartition(org.apache.hadoop.hive.metastore.events.DropPartitionEvent partitionEvent)
The listener for the drop partition command- Overrides:
onDropPartitionin classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
partitionEvent- An event that was listened for
-
onAlterTable
public void onAlterTable(org.apache.hadoop.hive.metastore.events.AlterTableEvent tableEvent) throws org.apache.hadoop.hive.metastore.api.MetaExceptionThe listener for the alter table command- Overrides:
onAlterTablein classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
tableEvent- An event that was listened for- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
onAlterPartition
public void onAlterPartition(org.apache.hadoop.hive.metastore.events.AlterPartitionEvent partitionEvent) throws org.apache.hadoop.hive.metastore.api.MetaExceptionThe listener for the alter partition command- Overrides:
onAlterPartitionin classorg.apache.hadoop.hive.metastore.MetaStoreEventListener- Parameters:
partitionEvent- An event that was listened for- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
-