15 package com.cloudera.impala.analysis;
17 import java.util.HashMap;
19 import com.cloudera.impala.thrift.TAlterTableParams;
20 import com.cloudera.impala.thrift.TAlterTableSetTblPropertiesParams;
21 import com.cloudera.impala.thrift.TAlterTableType;
22 import com.cloudera.impala.thrift.TTablePropertyType;
23 import com.google.common.base.Preconditions;
34 TTablePropertyType targetProperty, HashMap<String, String> tblProperties) {
35 super(tableName, partitionSpec);
36 Preconditions.checkNotNull(tblProperties);
37 Preconditions.checkNotNull(targetProperty);
47 TAlterTableParams params = super.toThrift();
48 params.setAlter_type(TAlterTableType.SET_TBL_PROPERTIES);
49 TAlterTableSetTblPropertiesParams tblPropertyParams =
50 new TAlterTableSetTblPropertiesParams();
54 tblPropertyParams.setPartition_spec(partitionSpec_.toThrift());
56 params.setSet_tbl_properties_params(tblPropertyParams);
AlterTableSetTblProperties(TableName tableName, PartitionSpec partitionSpec, TTablePropertyType targetProperty, HashMap< String, String > tblProperties)
final TTablePropertyType targetProperty_
final PartitionSpec partitionSpec_
final HashMap< String, String > tblProperties_
TAlterTableParams toThrift()
HashMap< String, String > getTblProperties()