本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getPartitionsByFilter()
方法的一些代码示例,展示了Hive.getPartitionsByFilter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getPartitionsByFilter()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getPartitionsByFilter
[英]Get a list of Partitions by filter.
[中]按筛选器获取分区列表。
代码示例来源:origin: apache/drill
try {
for (Partition p : Iterables.filter(
db.getPartitionsByFilter(tbl, partSpec.getPartSpec().getExprString()),
replicationSpec.allowEventReplacementInto())){
db.dropPartition(tbl.getDbName(),tbl.getTableName(),p.getValues(),true);
代码示例来源:origin: apache/hive
List<Partition> partitions = null;
try {
partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
} catch (Exception e) {
throw new HiveException(e);
代码示例来源:origin: apache/lens
public List<Partition> getPartitionsByFilter(String storageTableName, String filter) throws HiveException {
try {
return getClient().getPartitionsByFilter(getTable(storageTableName), filter);
} catch (Exception e) {
throw new HiveException(e);
}
}
代码示例来源:origin: org.apache.lens/lens-cube
public List<Partition> getPartitionsByFilter(String storageTableName, String filter) throws HiveException {
try {
return getClient().getPartitionsByFilter(getTable(storageTableName), filter);
} catch (Exception e) {
throw new HiveException(e);
}
}
代码示例来源:origin: org.apache.lens/lens-cube
partitions = getClient().getPartitionsByFilter(hiveTable, StorageConstants.getPartFilter(nonTimePartSpec));
filterPartitionsByUpdatePeriod(partitions, updatePeriod);
filterPartitionsByNonTimeParts(partitions, nonTimePartSpec, timeCol);
代码示例来源:origin: apache/lens
partitions = getClient().getPartitionsByFilter(hiveTable, StorageConstants.getPartFilter(nonTimePartSpec));
filterPartitionsByUpdatePeriod(partitions, updatePeriod);
filterPartitionsByNonTimeParts(partitions, nonTimePartSpec, timeCol);
代码示例来源:origin: org.apache.lens/lens-cube
try {
latest = client
.getPartitionsByFilter(storageTbl, StorageConstants.getLatestPartFilter(latestPartCol, nonTimeParts));
} catch (Exception e) {
throw new HiveException("Could not get latest partition", e);
代码示例来源:origin: apache/lens
try {
latest = client
.getPartitionsByFilter(storageTbl, StorageConstants.getLatestPartFilter(latestPartCol, nonTimeParts));
} catch (Exception e) {
throw new HiveException("Could not get latest partition", e);
代码示例来源:origin: org.apache.lens/lens-cube
latestParts = client.getPartitionsByFilter(storageTbl,
StorageConstants.getLatestPartFilter(latestPartCol, nonTimePartSpec));
MetastoreUtil.filterPartitionsByNonTimeParts(latestParts, nonTimePartSpec, latestPartCol);
代码示例来源:origin: apache/lens
latestParts = client.getPartitionsByFilter(storageTbl,
StorageConstants.getLatestPartFilter(latestPartCol, nonTimePartSpec));
MetastoreUtil.filterPartitionsByNonTimeParts(latestParts, nonTimePartSpec, latestPartCol);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
try {
for (Partition p : Iterables.filter(
db.getPartitionsByFilter(tbl, partSpec.getPartSpec().getExprString()),
replicationSpec.allowEventReplacementInto())){
db.dropPartition(tbl.getDbName(),tbl.getTableName(),p.getValues(),true);
代码示例来源:origin: org.spark-project.hive.hcatalog/hive-hcatalog-core
List<Partition> partitions = null;
try {
partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
} catch (Exception e) {
throw new HiveException(e);
代码示例来源:origin: org.apache.hive.hcatalog/hive-hcatalog-core
List<Partition> partitions = null;
try {
partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
} catch (Exception e) {
throw new HiveException(e);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
List<Partition> partitions = null;
try {
partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
} catch (Exception e) {
throw new HiveException(e);
代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core
List<Partition> partitions = null;
try {
partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
} catch (Exception e) {
throw new HiveException(e);
内容来源于网络,如有侵权,请联系作者删除!