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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.DDLWork
      extended by org.apache.hadoop.hive.ql.plan.MsckDesc
All Implemented Interfaces:
Serializable

public class MsckDesc
extends DDLWork
implements Serializable

MsckDesc.

See Also:
Serialized Form

Constructor Summary
MsckDesc()
          For serialization use only.
MsckDesc(String tableName, List<? extends Map<String,String>> partSpecs, org.apache.hadoop.fs.Path resFile, boolean repairPartitions)
          Description of a msck command.
 
Method Summary
 ArrayList<LinkedHashMap<String,String>> getPartSpecs()
           
 String getResFile()
           
 String getTableName()
           
 boolean isRepairPartitions()
           
 void setPartSpecs(ArrayList<LinkedHashMap<String,String>> partSpecs)
           
 void setRepairPartitions(boolean repairPartitions)
           
 void setResFile(String resFile)
           
 void setTableName(String tableName)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.plan.DDLWork
getAddPartitionDesc, getAlterDatabaseDesc, getAlterIndexDesc, getAlterTableAlterPartDesc, getAlterTableExchangePartition, getAlterTblDesc, getAlterTblSimpleDesc, getCreateDatabaseDesc, getCreateIndexDesc, getCreateTblDesc, getCreateTblLikeDesc, getCreateViewDesc, getCreateVwDesc, getDescDatabaseDesc, getDescFunctionDesc, getDescTblDesc, getDropDatabaseDesc, getDropIdxDesc, getDropTblDesc, getGrantDesc, getGrantRevokeRoleDDL, getInputs, getLockDatabaseDesc, getLockTblDesc, getMergeFilesDesc, getMsckDesc, getNeedLock, getOutputs, getRenamePartitionDesc, getRevokeDesc, getRoleDDLDesc, getShowColumnsDesc, getShowCompactionsDesc, getShowCreateTblDesc, getShowDatabasesDesc, getShowFuncsDesc, getShowGrantDesc, getShowIndexesDesc, getShowLocksDesc, getShowPartsDesc, getShowTblPropertiesDesc, getShowTblsDesc, getShowTblStatusDesc, getShowTxnsDesc, getSwitchDatabaseDesc, getTruncateTblDesc, getUnlockDatabaseDesc, getUnlockTblDesc, setAddPartitionDesc, setAlterDatabaseDesc, setAlterIndexDesc, setAlterTableAlterPartDesc, setAlterTableExchangePartition, setAlterTblDesc, setAlterTblSimpleDesc, setCreateDatabaseDesc, setCreateIndexDesc, setCreateTblDesc, setCreateTblLikeDesc, setCreateViewDesc, setCreateVwDesc, setDescFuncDesc, setDescFunctionDesc, setDescTblDesc, setDropDatabaseDesc, setDropIdxDesc, setDropTblDesc, setGrantDesc, setGrantRevokeRoleDDL, setInputs, setLockDatabaseDesc, setLockTblDesc, setMergeFilesDesc, setMsckDesc, setNeedLock, setOutputs, setRenamePartitionDesc, setRevokeDesc, setRoleDDLDesc, setShowColumnsDesc, setShowCompactionsDesc, setShowCreateTblDesc, setShowDatabasesDesc, setShowFuncsDesc, setShowGrantDesc, setShowIndexesDesc, setShowLocksDesc, setShowPartsDesc, setShowTblPropertiesDesc, setShowTblsDesc, setShowTblStatusDesc, setShowTxnsDesc, setSwitchDatabaseDesc, setTruncateTblDesc, setUnlockDatabaseDesc, setUnlockTblDesc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsckDesc

public MsckDesc()
For serialization use only.


MsckDesc

public MsckDesc(String tableName,
                List<? extends 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

getPartSpecs

public ArrayList<LinkedHashMap<String,String>> getPartSpecs()
Returns:
partitions to check.

setPartSpecs

public void setPartSpecs(ArrayList<LinkedHashMap<String,String>> partSpecs)
Parameters:
partSpecs - partitions to check.

getResFile

public String getResFile()
Returns:
file to save command output to

setResFile

public void setResFile(String 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:
repairPartitions - stale / add new partitions found during the check


Copyright © 2014 The Apache Software Foundation. All rights reserved.