org.apache.hadoop.hive.ql.plan
Class MsckDesc

java.lang.Object
  extended by 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.
 
Method Summary
 List<Map<String,String>> getPartitionSpec()
           
 org.apache.hadoop.fs.Path getResFile()
           
 String getTableName()
           
 boolean isRepairPartitions()
           
 void setPartitionSpec(List<Map<String,String>> partitionSpec)
           
 void setRepairPartitions(boolean repairPartitions)
           
 void setResFile(org.apache.hadoop.fs.Path resFile)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 command
repairPartitions - remove stale / add new partitions found during the check
Method Detail

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