org.apache.hadoop.hive.metastore.api.Table.getRetention()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(126)

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

Table.getRetention介绍

暂无

代码示例

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

/**
 * @return The retention on the table.
 * @see org.apache.hadoop.hive.metastore.api.Table#getRetention()
 */
public int getRetention() {
 return tTable.getRetention();
}

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

/**
 * @return The retention on the table.
 * @see org.apache.hadoop.hive.metastore.api.Table#getRetention()
 */
public int getRetention() {
 return tTable.getRetention();
}

代码示例来源:origin: apache/incubator-gobblin

private static State getTableProps(Table table) {
 State tableProps = new State();
 for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  tableProps.setProp(entry.getKey(), entry.getValue());
 }
 if (table.isSetCreateTime()) {
  tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
 }
 if (table.isSetLastAccessTime()) {
  tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
 }
 if (table.isSetOwner()) {
  tableProps.setProp(HiveConstants.OWNER, table.getOwner());
 }
 if (table.isSetTableType()) {
  tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
 }
 if (table.isSetRetention()) {
  tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
 }
 return tableProps;
}

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

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(), tbl.isRewriteEnabled(),

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

return getRetention();

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

Assert.assertNotEquals("Comparing CreateTime", 0, createdTable.getCreateTime());
Assert.assertEquals("Comparing LastAccessTime", 0, createdTable.getLastAccessTime());
Assert.assertEquals("Comparing Retention", 0, createdTable.getRetention());
Assert.assertEquals("Comparing PartitionKeys", 0, createdTable.getPartitionKeys().size());

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

/**
 * @return The retention on the table.
 * @see org.apache.hadoop.hive.metastore.api.Table#getRetention()
 */
public int getRetention() {
 return tTable.getRetention();
}

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

/**
 * @return The retention on the table.
 * @see org.apache.hadoop.hive.metastore.api.Table#getRetention()
 */
public int getRetention() {
 return tTable.getRetention();
}

代码示例来源:origin: org.apache.hadoop.hive/hive-metastore

return new Integer(getRetention());

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

return Integer.valueOf(getRetention());

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

return Integer.valueOf(getRetention());

代码示例来源:origin: org.apache.gobblin/gobblin-hive-registration

private static State getTableProps(Table table) {
 State tableProps = new State();
 for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  tableProps.setProp(entry.getKey(), entry.getValue());
 }
 if (table.isSetCreateTime()) {
  tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
 }
 if (table.isSetLastAccessTime()) {
  tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
 }
 if (table.isSetOwner()) {
  tableProps.setProp(HiveConstants.OWNER, table.getOwner());
 }
 if (table.isSetTableType()) {
  tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
 }
 if (table.isSetRetention()) {
  tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
 }
 return tableProps;
}

代码示例来源:origin: org.apache.hadoop.hive/hive-metastore

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),

代码示例来源:origin: edu.berkeley.cs.shark/hive-metastore

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),

代码示例来源:origin: com.linkedin.gobblin/gobblin-hive-registration

private static State getTableProps(Table table) {
 State tableProps = new State();
 for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  tableProps.setProp(entry.getKey(), entry.getValue());
 }
 if (table.isSetCreateTime()) {
  tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
 }
 if (table.isSetLastAccessTime()) {
  tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
 }
 if (table.isSetOwner()) {
  tableProps.setProp(HiveConstants.OWNER, table.getOwner());
 }
 if (table.isSetTableType()) {
  tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
 }
 if (table.isSetRetention()) {
  tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
 }
 return tableProps;
}

代码示例来源:origin: cdapio/cdap

tableInfo.getRetention(), partitionKeysBuilder.build(), tableInfo.getParameters(),
tableInfo.getTableType(), schemaBuilder.build(), tableInfo.getSd().getLocation(),
tableInfo.getSd().getInputFormat(), tableInfo.getSd().getOutputFormat(),

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

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),

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

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(), tbl.isRewriteEnabled(),

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

return getRetention();

相关文章

Table类方法