public class MsckDesc extends DDLWork implements Serializable
Constructor and Description |
---|
MsckDesc()
For serialization use only.
|
MsckDesc(String tableName,
List<? extends Map<String,String>> partSpecs,
org.apache.hadoop.fs.Path resFile,
boolean repairPartitions,
boolean addPartitions,
boolean dropPartitions)
Description of a msck command.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<LinkedHashMap<String,String>> |
getPartSpecs() |
String |
getResFile() |
String |
getTableName() |
boolean |
isAddPartitions() |
boolean |
isDropPartitions() |
boolean |
isRepairPartitions() |
void |
setPartSpecs(ArrayList<LinkedHashMap<String,String>> partSpecs) |
void |
setRepairPartitions(boolean repairPartitions) |
void |
setResFile(String resFile) |
void |
setTableName(String tableName) |
getAbortTxnsDesc, getAddPartitionDesc, getAlterDatabaseDesc, getAlterMaterializedViewDesc, getAlterResourcePlanDesc, getAlterTableAlterPartDesc, getAlterTableExchangePartition, getAlterTblDesc, getAlterTblSimpleDesc, getAlterWMTriggerDesc, getCacheMetadataDesc, getCreateDatabaseDesc, getCreateResourcePlanDesc, getCreateTblDesc, getCreateTblLikeDesc, getCreateViewDesc, getCreateWMTriggerDesc, getDescDatabaseDesc, getDescFunctionDesc, getDescTblDesc, getDropDatabaseDesc, getDropResourcePlanDesc, getDropTblDesc, getDropWMMappingDesc, getDropWMPoolDesc, getDropWMTriggerDesc, getGrantDesc, getGrantRevokeRoleDDL, getInputs, getInsertCommitHookDesc, getKillQueryDesc, getLockDatabaseDesc, getLockTblDesc, getMergeFilesDesc, getMsckDesc, getNeedLock, getOutputs, getPreInsertTableDesc, getRenamePartitionDesc, getRevokeDesc, getRoleDDLDesc, getShowColumnsDesc, getShowCompactionsDesc, getShowConfDesc, getShowCreateDbDesc, getShowCreateTblDesc, getShowDatabasesDesc, getShowFuncsDesc, getShowGrantDesc, getShowLocksDesc, getShowPartsDesc, getShowResourcePlanDesc, getShowTblPropertiesDesc, getShowTblsDesc, getShowTblStatusDesc, getShowTxnsDesc, getSwitchDatabaseDesc, getTriggerToPoolMappingDesc, getTruncateTblDesc, getUnlockDatabaseDesc, getUnlockTblDesc, getWmMappingDesc, getWmPoolDesc, setAbortTxnsDesc, setAddPartitionDesc, setAlterDatabaseDesc, setAlterMVDesc, setAlterResourcePlanDesc, setAlterTableAlterPartDesc, setAlterTableExchangePartition, setAlterTblDesc, setAlterTblSimpleDesc, setAlterWMTriggerDesc, setCreateDatabaseDesc, setCreateResourcePlanDesc, setCreateTblDesc, setCreateTblLikeDesc, setCreateViewDesc, setCreateWMTriggerDesc, setDescFuncDesc, setDescFunctionDesc, setDescTblDesc, setDropDatabaseDesc, setDropResourcePlanDesc, setDropTblDesc, setDropWMMappingDesc, setDropWMPoolDesc, setDropWMTriggerDesc, setGrantDesc, setGrantRevokeRoleDDL, setInputs, setInsertCommitHookDesc, setKillQueryDesc, setLockDatabaseDesc, setLockTblDesc, setMergeFilesDesc, setMsckDesc, setNeedLock, setOutputs, setPreInsertTableDesc, setRenamePartitionDesc, setRevokeDesc, setRoleDDLDesc, setShowColumnsDesc, setShowCompactionsDesc, setShowConfDesc, setShowCreateDbDesc, setShowCreateTblDesc, setShowDatabasesDesc, setShowFuncsDesc, setShowGrantDesc, setShowLocksDesc, setShowPartsDesc, setShowResourcePlanDesc, setShowTblPropertiesDesc, setShowTblsDesc, setShowTblStatusDesc, setShowTxnsDesc, setSwitchDatabaseDesc, setTriggerToPoolMappingDesc, setTruncateTblDesc, setUnlockDatabaseDesc, setUnlockTblDesc, setWmMappingDesc, setWmPoolDesc
public MsckDesc()
public MsckDesc(String tableName, List<? extends Map<String,String>> partSpecs, org.apache.hadoop.fs.Path resFile, boolean repairPartitions, boolean addPartitions, boolean dropPartitions)
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 checkaddPartitions
- find partitions that are missing from metastore, and add them when repairPartitions
is set to truedropPartitions
- find stale partitions in metastore, and drop them when repairPartitions
is set to truepublic String getTableName()
public void setTableName(String tableName)
tableName
- the table to checkpublic ArrayList<LinkedHashMap<String,String>> getPartSpecs()
public void setPartSpecs(ArrayList<LinkedHashMap<String,String>> partSpecs)
partSpecs
- partitions to check.public String getResFile()
public void setResFile(String resFile)
resFile
- file to save command output topublic boolean isRepairPartitions()
public boolean isAddPartitions()
public boolean isDropPartitions()
public void setRepairPartitions(boolean repairPartitions)
repairPartitions
- stale / add new partitions found during the checkCopyright © 2022 The Apache Software Foundation. All rights reserved.