15 package com.cloudera.impala.analysis;
20 import com.cloudera.impala.thrift.TAlterTableParams;
21 import com.cloudera.impala.thrift.TAlterTableSetCachedParams;
22 import com.cloudera.impala.thrift.TAlterTableType;
23 import com.google.common.base.Preconditions;
33 super(tableName, partitionSpec);
34 Preconditions.checkNotNull(cacheOp);
40 TAlterTableParams params = super.toThrift();
41 params.setAlter_type(TAlterTableType.SET_CACHED);
42 TAlterTableSetCachedParams cachingParams =
43 new TAlterTableSetCachedParams();
47 cachingParams.setCache_op(cacheOp_.toThrift());
48 params.setSet_cached_params(cachingParams);
54 super.analyze(analyzer);
55 cacheOp_.analyze(analyzer);
58 Preconditions.checkNotNull(table);
61 "HDFS table: " + table.getFullName());
AlterTableSetCachedStmt(TableName tableName, PartitionSpec partitionSpec, HdfsCachingOp cacheOp)
PartitionSpec getPartitionSpec()
TAlterTableParams toThrift()
final HdfsCachingOp cacheOp_
void analyze(Analyzer analyzer)