本文整理汇总了Java中org.apache.hadoop.hive.metastore.api.Partition.getTableName方法的典型用法代码示例。如果您正苦于以下问题:Java Partition.getTableName方法的具体用法?Java Partition.getTableName怎么用?Java Partition.getTableName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hive.metastore.api.Partition
的用法示例。
在下文中一共展示了Partition.getTableName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HivePartition
import org.apache.hadoop.hive.metastore.api.Partition; //导入方法依赖的package包/类
public HivePartition(Partition partition) {
if (partition == null) {
return;
}
this.partition = partition;
this.values = partition.getValues();
this.tableName = partition.getTableName();
this.dbName = partition.getDbName();
this.createTime = partition.getCreateTime();
this.lastAccessTime = partition.getLastAccessTime();
this.sd = new StorageDescriptorWrapper(partition.getSd());
this.parameters = partition.getParameters();
}
示例2: newReplicaPartitionStatistics
import org.apache.hadoop.hive.metastore.api.Partition; //导入方法依赖的package包/类
ColumnStatistics newReplicaPartitionStatistics(
Table replicaTable,
Partition replicaPartition,
ColumnStatistics sourcePartitionStatistics) {
ColumnStatisticsDesc statisticsDesc = new ColumnStatisticsDesc(false, replicaPartition.getDbName(),
replicaPartition.getTableName());
try {
statisticsDesc.setPartName(Warehouse.makePartName(replicaTable.getPartitionKeys(), replicaPartition.getValues()));
} catch (MetaException e) {
throw new RuntimeException(e);
}
return columnStatisticsTransformation
.transform(new ColumnStatistics(statisticsDesc, sourcePartitionStatistics.getStatsObj()));
}
示例3: sourcePartitionToPartitionAndMetadata
import org.apache.hadoop.hive.metastore.api.Partition; //导入方法依赖的package包/类
@VisibleForTesting
static PartitionAndMetadata sourcePartitionToPartitionAndMetadata(Partition sourcePartition) {
return new PartitionAndMetadata(sourcePartition.getDbName() + "." + sourcePartition.getTableName(),
normaliseLocation(sourcePartition.getSd().getLocation()), sourcePartition);
}
示例4: newPartitionAndMetadata
import org.apache.hadoop.hive.metastore.api.Partition; //导入方法依赖的package包/类
public static PartitionAndMetadata newPartitionAndMetadata(String database, String tableName, String partitionValue) {
Partition partition = newPartition(database, tableName, partitionValue);
return new PartitionAndMetadata(partition.getDbName() + "." + partition.getTableName(),
partition.getSd().getLocation(), partition);
}