org.apache.hadoop.hive.ql.exec.Utilities.getPartitionDesc()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中org.apache.hadoop.hive.ql.exec.Utilities.getPartitionDesc()方法的一些代码示例,展示了Utilities.getPartitionDesc()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.getPartitionDesc()方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.exec.Utilities
类名称:Utilities
方法名:getPartitionDesc

Utilities.getPartitionDesc介绍

暂无

代码示例

代码示例来源:origin: apache/hive

try {
 if (!parts.isEmpty()) {
  aliasPartnDesc = Utilities.getPartitionDesc(parts.iterator().next(), tableSpec);
  try {
   if (part.getTable().isPartitioned()) {
    partDesc.add(Utilities.getPartitionDesc(part, tblDesc));

代码示例来源:origin: com.facebook.presto.hive/hive-apache

private FetchWork convertToWork() throws HiveException {
 inputs.clear();
 if (!table.isPartitioned()) {
  inputs.add(new ReadEntity(table, parent, !table.isView() && parent == null));
  FetchWork work = new FetchWork(table.getPath(), Utilities.getTableDesc(table));
  PlanUtils.configureInputJobPropertiesForStorageHandler(work.getTblDesc());
  work.setSplitSample(splitSample);
  return work;
 }
 List<Path> listP = new ArrayList<Path>();
 List<PartitionDesc> partP = new ArrayList<PartitionDesc>();
 for (Partition partition : partsList.getNotDeniedPartns()) {
  inputs.add(new ReadEntity(partition, parent, parent == null));
  listP.add(partition.getDataLocation());
  partP.add(Utilities.getPartitionDesc(partition));
 }
 Table sourceTable = partsList.getSourceTable();
 inputs.add(new ReadEntity(sourceTable, parent, parent == null));
 TableDesc table = Utilities.getTableDesc(sourceTable);
 FetchWork work = new FetchWork(listP, partP, table);
 if (!work.getPartDesc().isEmpty()) {
  PartitionDesc part0 = work.getPartDesc().get(0);
  PlanUtils.configureInputJobPropertiesForStorageHandler(part0.getTableDesc());
  work.setSplitSample(splitSample);
 }
 return work;
}

代码示例来源:origin: apache/drill

try {
 if (!parts.isEmpty()) {
  aliasPartnDesc = Utilities.getPartitionDesc(parts.iterator().next());
  try {
   if (part.getTable().isPartitioned()) {
    partDesc.add(Utilities.getPartitionDesc(part));

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

try {
 if (!parts.isEmpty()) {
  aliasPartnDesc = Utilities.getPartitionDesc(parts.iterator().next());
   partDesc.add(Utilities.getPartitionDesc(part));
  } catch (HiveException e) {
   LOG.error(org.apache.hadoop.util.StringUtils.stringifyException(e));

代码示例来源:origin: com.facebook.presto.hive/hive-apache

try {
 if (!parts.isEmpty()) {
  aliasPartnDesc = Utilities.getPartitionDesc(parts.iterator().next());
  try {
   if (part.getTable().isPartitioned()) {
    partDesc.add(Utilities.getPartitionDesc(part));

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

partP.add(Utilities.getPartitionDesc(part));
} catch (HiveException e) {
 throw new SemanticException(e.getMessage(), e);

相关文章

微信公众号

最新文章

更多

Utilities类方法