15 package com.cloudera.impala.analysis;
17 import java.util.List;
21 import com.cloudera.impala.thrift.TShowFilesParams;
22 import com.cloudera.impala.thrift.TPartitionKeyValue;
25 import com.cloudera.impala.thrift.TTableName;
26 import com.google.common.base.Preconditions;
27 import com.google.common.base.Joiner;
28 import com.google.common.collect.Lists;
47 this.tableName_ = tableName;
48 this.partitionSpec_ = partitionSpec;
53 StringBuilder strBuilder =
new StringBuilder();
54 strBuilder.append(
"SHOW FILES IN " + tableName_.toString());
55 if (
partitionSpec_ != null) strBuilder.append(
" " + partitionSpec_.toSql());
56 return strBuilder.toString();
73 partitionSpec_.setPartitionShouldExist();
75 partitionSpec_.analyze(analyzer);
80 TShowFilesParams params =
new TShowFilesParams();
81 params.setTable_name(
new TTableName(
tableName_.
getDb(), tableName_.getTbl()));
83 params.setPartition_spec(partitionSpec_.toThrift());
ShowFilesStmt(TableName tableName, PartitionSpec partitionSpec)
TShowFilesParams toThrift()
boolean isFullyQualified()
void analyze(Analyzer analyzer)
final PartitionSpec partitionSpec_