Class SnowflakeHiveListener

  • All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable

    public class SnowflakeHiveListener
    extends org.apache.hadoop.hive.metastore.MetaStoreEventListener
    The 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
      void onAddPartition​(org.apache.hadoop.hive.metastore.events.AddPartitionEvent partitionEvent)
      The listener for the add partition command
      void onAlterPartition​(org.apache.hadoop.hive.metastore.events.AlterPartitionEvent partitionEvent)
      The listener for the alter partition command
      void onAlterTable​(org.apache.hadoop.hive.metastore.events.AlterTableEvent tableEvent)
      The listener for the alter table command
      void onCreateTable​(org.apache.hadoop.hive.metastore.events.CreateTableEvent tableEvent)
      The listener for the create table command
      void onDropPartition​(org.apache.hadoop.hive.metastore.events.DropPartitionEvent partitionEvent)
      The listener for the drop partition command
      void onDropTable​(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
    • Constructor Detail

      • SnowflakeHiveListener

        public SnowflakeHiveListener​(org.apache.hadoop.conf.Configuration config)
    • Method Detail

      • onCreateTable

        public void onCreateTable​(org.apache.hadoop.hive.metastore.events.CreateTableEvent tableEvent)
        The listener for the create table command
        Overrides:
        onCreateTable in class org.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:
        onDropTable in class org.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:
        onAddPartition in class org.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:
        onDropPartition in class org.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.MetaException
        The listener for the alter table command
        Overrides:
        onAlterTable in class org.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.MetaException
        The listener for the alter partition command
        Overrides:
        onAlterPartition in class org.apache.hadoop.hive.metastore.MetaStoreEventListener
        Parameters:
        partitionEvent - An event that was listened for
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException