Class DropPartition
- java.lang.Object
-
- net.snowflake.hivemetastoreconnector.commands.Command
-
- net.snowflake.hivemetastoreconnector.commands.DropPartition
-
public class DropPartition extends Command
A class for the DropPartition command- Author:
- wwong
-
-
Constructor Summary
Constructors Constructor Description DropPartition(org.apache.hadoop.hive.metastore.api.Table hiveTable, Iterator<String> partititonLocationsIterator)Creates a DropPartition commandDropPartition(org.apache.hadoop.hive.metastore.events.DropPartitionEvent dropPartitionEvent)Creates a DropPartition command
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>generateSqlQueries()Generates the necessary commands on a Hive drop partition event-
Methods inherited from class net.snowflake.hivemetastoreconnector.commands.Command
getDatabaseName, getTableName
-
-
-
-
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 frompartititonLocationsIterator- 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:
generateSqlQueriesin classCommand- Returns:
- The Snowflake commands generated
-
-