Class DropPartition


  • public class DropPartition
    extends Command
    A class for the DropPartition command
    Author:
    wwong
    • Constructor Detail

      • DropPartition

        public DropPartition​(org.apache.hadoop.hive.metastore.events.DropPartitionEvent dropPartitionEvent)
        Creates a DropPartition command
        Parameters:
        dropPartitionEvent - Event to generate a command from
      • DropPartition

        public DropPartition​(org.apache.hadoop.hive.metastore.api.Table hiveTable,
                             Iterator<String> partititonLocationsIterator)
        Creates a DropPartition command
        Parameters:
        hiveTable - The Hive table to generate a command from
        partititonLocationsIterator - iterator of the locations of the partitions to drop
    • Method Detail

      • generateSqlQueries

        public List<String> generateSqlQueries()
        Generates the necessary commands on a Hive drop partition event
        Specified by:
        generateSqlQueries in class Command
        Returns:
        The Snowflake commands generated