org.apache.lens.api.metastore.XPartitionList.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(92)

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

XPartitionList.<init>介绍

暂无

代码示例

代码示例来源:origin: org.apache.lens/lens-api

/**
 * Create an instance of {@link XPartitionList }
 * 
 */
public XPartitionList createXPartitionList() {
  return new XPartitionList();
}

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

/**
 * Create an instance of {@link XPartitionList }
 * 
 */
public XPartitionList createXPartitionList() {
  return new XPartitionList();
}

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

public static XPartitionList xpartitionListFromPartitionList(String cubeTableName, List<Partition> partitions,
 List<String> timePartCols) throws HiveException {
 XPartitionList xPartitionList = new XPartitionList();
 xPartitionList.getPartition();
 if (partitions != null) {
  for (Partition partition : partitions) {
   xPartitionList.getPartition().add(xpartitionFromPartition(cubeTableName, partition, timePartCols));
  }
 }
 return xPartitionList;
}

代码示例来源:origin: org.apache.lens/lens-cube

public static XPartitionList xpartitionListFromPartitionList(String cubeTableName, List<Partition> partitions,
 List<String> timePartCols) throws HiveException {
 XPartitionList xPartitionList = new XPartitionList();
 xPartitionList.getPartition();
 if (partitions != null) {
  for (Partition partition : partitions) {
   xPartitionList.getPartition().add(xpartitionFromPartition(cubeTableName, partition, timePartCols));
  }
 }
 return xPartitionList;
}

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

private XPartitionList toXPartitionList(final XPartition... xps) {
 XPartitionList ret = new XPartitionList();
 Collections.addAll(ret.getPartition(), xps);
 return ret;
}

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

assertEquals(date.getDate(), partDate);
XPartitionList parts = new XPartitionList();
parts.getPartition().add(xp);
parts.getPartition().add(createPartition(table, DateUtils.addHours(partDate, 1)));

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

XPartitionList partList = new XPartitionList();
partList.getPartition().add(createPartition(table, DateUtils.addHours(partDate, 1)));
partList.getPartition().add(createPartition(table, DateUtils.addHours(partDate, -300)));

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

XPartitionList parts = new XPartitionList();
parts.getPartition().add(xp);
parts.getPartition().add(xp2);

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

assertEquals(date.getDate(), partDate);
XPartitionList parts = new XPartitionList();
parts.getPartition().add(xp);
parts.getPartition().add(createPartition(table, DateUtils.addHours(partDate, 1)));

相关文章