本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getAllPartitionsOf()
方法的一些代码示例,展示了Hive.getAllPartitionsOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getAllPartitionsOf()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getAllPartitionsOf
[英]Get all the partitions; unlike #getPartitions(Table), does not include auth.
[中]获取所有分区;与#getPartitions(表)不同,它不包括auth。
代码示例来源:origin: apache/hive
private static Set<Partition> getAllPartitions(Table tab) throws HiveException {
PerfLogger perfLogger = SessionState.getPerfLogger();
perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
Set<Partition> result = Hive.get().getAllPartitionsOf(tab);
perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
return result;
}
代码示例来源:origin: apache/drill
private static Set<Partition> getAllPartitions(Table tab) throws HiveException {
PerfLogger perfLogger = SessionState.getPerfLogger();
perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
Set<Partition> result = Hive.get().getAllPartitionsOf(tab);
perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
return result;
}
代码示例来源:origin: apache/drill
PerfLogger perfLogger = SessionState.getPerfLogger();
perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
loadedPartitions.addAll(hive.getAllPartitionsOf(table));
perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
parts = new PartitionIterable(loadedPartitions);
代码示例来源:origin: apache/hive
Set<Partition> partitions = db.getAllPartitionsOf(tbl);
int colIndex = -1;
for(FieldSchema col : tbl.getTTable().getPartitionKeys()) {
代码示例来源:origin: apache/drill
Set<Partition> partitions = db.getAllPartitionsOf(tbl);
int colIndex = -1;
for(FieldSchema col : tbl.getTTable().getPartitionKeys()) {
代码示例来源:origin: com.facebook.presto.hive/hive-apache
private static Set<Partition> getAllPartitions(Table tab) throws HiveException {
PerfLogger perfLogger = PerfLogger.getPerfLogger();
perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
Set<Partition> result = Hive.get().getAllPartitionsOf(tab);
perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING);
return result;
}
代码示例来源:origin: apache/lens
handler.process(event);
Hive h = getHiveClient(conf);
Set<Partition> partitionSet = h.getAllPartitionsOf(getHiveTable());
Assert.assertEquals(partitionSet.size(), 1);
Partition p = partitionSet.iterator().next();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
Set<Partition> partitions = db.getAllPartitionsOf(tbl);
int colIndex = -1;
for(FieldSchema col : tbl.getTTable().getPartitionKeys()) {
内容来源于网络,如有侵权,请联系作者删除!