org.apache.hadoop.hive.ql.plan
Class MsckDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.MsckDesc
public class MsckDesc
- extends Object
Constructor Summary |
MsckDesc(String tableName,
List<Map<String,String>> partSpecs,
org.apache.hadoop.fs.Path resFile,
boolean repairPartitions)
Description of a msck command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MsckDesc
public MsckDesc(String tableName,
List<Map<String,String>> partSpecs,
org.apache.hadoop.fs.Path resFile,
boolean repairPartitions)
- Description of a msck command.
- Parameters:
tableName
- Table to check, can be null.partSpecs
- Partition specification, can be null.resFile
- Where to save the output of the commandrepairPartitions
- remove stale / add new partitions found during the check
getTableName
public String getTableName()
- Returns:
- the table to check
setTableName
public void setTableName(String tableName)
- Parameters:
tableName
- the table to check
getPartitionSpec
public List<Map<String,String>> getPartitionSpec()
- Returns:
- partitions to check.
setPartitionSpec
public void setPartitionSpec(List<Map<String,String>> partitionSpec)
- Parameters:
partitionSpec
- partitions to check.
getResFile
public org.apache.hadoop.fs.Path getResFile()
- Returns:
- file to save command output to
setResFile
public void setResFile(org.apache.hadoop.fs.Path resFile)
- Parameters:
resFile
- file to save command output to
isRepairPartitions
public boolean isRepairPartitions()
- Returns:
- remove stale / add new partitions found during the check
setRepairPartitions
public void setRepairPartitions(boolean repairPartitions)
- Parameters:
remove
- stale / add new partitions found during the check
Copyright © 2009 The Apache Software Foundation