本文整理了Java中org.apache.lens.api.metastore.XPartitionList.<init>()
方法的一些代码示例,展示了XPartitionList.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPartitionList.<init>()
方法的具体详情如下:
包路径:org.apache.lens.api.metastore.XPartitionList
类名称: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)));
内容来源于网络,如有侵权,请联系作者删除!