当前位置: 首页>>代码示例>>Java>>正文


Java Partition.getTableName方法代码示例

本文整理汇总了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();
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:14,代码来源:HiveTable.java

示例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()));
}
 
开发者ID:HotelsDotCom,项目名称:circus-train,代码行数:16,代码来源:ReplicaTableFactory.java

示例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);
}
 
开发者ID:HotelsDotCom,项目名称:circus-train,代码行数:6,代码来源:HiveDifferences.java

示例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);
}
 
开发者ID:HotelsDotCom,项目名称:circus-train,代码行数:6,代码来源:TestUtils.java


注:本文中的org.apache.hadoop.hive.metastore.api.Partition.getTableName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。