public class AlterTableSimpleDesc extends DDLDesc
Constructor and Description |
---|
AlterTableSimpleDesc() |
AlterTableSimpleDesc(String tableName,
LinkedHashMap<String,String> partSpec,
String compactionType)
Constructor for ALTER TABLE ...
|
AlterTableSimpleDesc(String tableName,
Map<String,String> partSpec,
AlterTableDesc.AlterTableTypes type) |
Modifier and Type | Method and Description |
---|---|
String |
getCompactionType()
Get what type of compaction is being done by a ALTER TABLE ...
|
LinkedHashMap<String,String> |
getPartSpec() |
String |
getTableName() |
AlterTableDesc.AlterTableTypes |
getType() |
void |
setPartSpec(LinkedHashMap<String,String> partSpec) |
void |
setTableName(String tableName) |
void |
setType(AlterTableDesc.AlterTableTypes type) |
public AlterTableSimpleDesc()
public AlterTableSimpleDesc(String tableName, Map<String,String> partSpec, AlterTableDesc.AlterTableTypes type)
tableName
- table containing the partitionpartSpec
- public AlterTableSimpleDesc(String tableName, LinkedHashMap<String,String> partSpec, String compactionType)
tableName
- name of the table to compactpartSpec
- partition to compactcompactionType
- currently supported values: 'major' and 'minor'public String getTableName()
public void setTableName(String tableName)
public AlterTableDesc.AlterTableTypes getType()
public void setType(AlterTableDesc.AlterTableTypes type)
public LinkedHashMap<String,String> getPartSpec()
public void setPartSpec(LinkedHashMap<String,String> partSpec)
public String getCompactionType()
Copyright © 2017 The Apache Software Foundation. All rights reserved.