org.apache.hadoop.hive.ql.metadata.Hive.getPartitionsByFilter()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(183)

本文整理了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

Hive.getPartitionsByFilter介绍

[英]Get a list of Partitions by filter.
[中]按筛选器获取分区列表。

代码示例

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

  1. try {
  2. for (Partition p : Iterables.filter(
  3. db.getPartitionsByFilter(tbl, partSpec.getPartSpec().getExprString()),
  4. replicationSpec.allowEventReplacementInto())){
  5. db.dropPartition(tbl.getDbName(),tbl.getTableName(),p.getValues(),true);

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

  1. List<Partition> partitions = null;
  2. try {
  3. partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
  4. } catch (Exception e) {
  5. throw new HiveException(e);

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

  1. public List<Partition> getPartitionsByFilter(String storageTableName, String filter) throws HiveException {
  2. try {
  3. return getClient().getPartitionsByFilter(getTable(storageTableName), filter);
  4. } catch (Exception e) {
  5. throw new HiveException(e);
  6. }
  7. }

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

  1. public List<Partition> getPartitionsByFilter(String storageTableName, String filter) throws HiveException {
  2. try {
  3. return getClient().getPartitionsByFilter(getTable(storageTableName), filter);
  4. } catch (Exception e) {
  5. throw new HiveException(e);
  6. }
  7. }

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

  1. partitions = getClient().getPartitionsByFilter(hiveTable, StorageConstants.getPartFilter(nonTimePartSpec));
  2. filterPartitionsByUpdatePeriod(partitions, updatePeriod);
  3. filterPartitionsByNonTimeParts(partitions, nonTimePartSpec, timeCol);

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

  1. partitions = getClient().getPartitionsByFilter(hiveTable, StorageConstants.getPartFilter(nonTimePartSpec));
  2. filterPartitionsByUpdatePeriod(partitions, updatePeriod);
  3. filterPartitionsByNonTimeParts(partitions, nonTimePartSpec, timeCol);

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

  1. try {
  2. latest = client
  3. .getPartitionsByFilter(storageTbl, StorageConstants.getLatestPartFilter(latestPartCol, nonTimeParts));
  4. } catch (Exception e) {
  5. throw new HiveException("Could not get latest partition", e);

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

  1. try {
  2. latest = client
  3. .getPartitionsByFilter(storageTbl, StorageConstants.getLatestPartFilter(latestPartCol, nonTimeParts));
  4. } catch (Exception e) {
  5. throw new HiveException("Could not get latest partition", e);

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

  1. latestParts = client.getPartitionsByFilter(storageTbl,
  2. StorageConstants.getLatestPartFilter(latestPartCol, nonTimePartSpec));
  3. MetastoreUtil.filterPartitionsByNonTimeParts(latestParts, nonTimePartSpec, latestPartCol);

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

  1. latestParts = client.getPartitionsByFilter(storageTbl,
  2. StorageConstants.getLatestPartFilter(latestPartCol, nonTimePartSpec));
  3. MetastoreUtil.filterPartitionsByNonTimeParts(latestParts, nonTimePartSpec, latestPartCol);

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

  1. try {
  2. for (Partition p : Iterables.filter(
  3. db.getPartitionsByFilter(tbl, partSpec.getPartSpec().getExprString()),
  4. replicationSpec.allowEventReplacementInto())){
  5. db.dropPartition(tbl.getDbName(),tbl.getTableName(),p.getValues(),true);

代码示例来源:origin: org.spark-project.hive.hcatalog/hive-hcatalog-core

  1. List<Partition> partitions = null;
  2. try {
  3. partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
  4. } catch (Exception e) {
  5. throw new HiveException(e);

代码示例来源:origin: org.apache.hive.hcatalog/hive-hcatalog-core

  1. List<Partition> partitions = null;
  2. try {
  3. partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
  4. } catch (Exception e) {
  5. throw new HiveException(e);

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

  1. List<Partition> partitions = null;
  2. try {
  3. partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
  4. } catch (Exception e) {
  5. throw new HiveException(e);

代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

  1. List<Partition> partitions = null;
  2. try {
  3. partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString());
  4. } catch (Exception e) {
  5. throw new HiveException(e);

相关文章

Hive类方法