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

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

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

Table.getLastAccessTime介绍

暂无

代码示例

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

  1. public int getLastAccessTime() {
  2. return tTable.getLastAccessTime();
  3. }

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

  1. public int getLastAccessTime() {
  2. return tTable.getLastAccessTime();
  3. }

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

  1. private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl,
  2. boolean isOutputPadded) {
  3. formatOutput("Database:", tbl.getDbName(), tableInfo);
  4. formatOutput("Owner:", tbl.getOwner(), tableInfo);
  5. formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
  6. formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
  7. formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
  8. if (!tbl.isView()) {
  9. formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
  10. }
  11. formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
  12. if (tbl.getParameters().size() > 0) {
  13. tableInfo.append("Table Parameters:").append(LINE_DELIM);
  14. displayAllParameters(tbl.getParameters(), tableInfo, false, isOutputPadded);
  15. }
  16. }

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

  1. private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl,
  2. boolean isOutputPadded) {
  3. formatOutput("Database:", tbl.getDbName(), tableInfo);
  4. formatOutput("OwnerType:", (tbl.getOwnerType() != null) ? tbl.getOwnerType().name() : "null", tableInfo);
  5. formatOutput("Owner:", tbl.getOwner(), tableInfo);
  6. formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
  7. formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
  8. formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
  9. if (!tbl.isView()) {
  10. formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
  11. }
  12. formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
  13. if (tbl.getParameters().size() > 0) {
  14. tableInfo.append("Table Parameters:").append(LINE_DELIM);
  15. displayAllParameters(tbl.getParameters(), tableInfo, false, isOutputPadded);
  16. }
  17. }

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

  1. builder.setSdOutputFormat(table.getSd().getOutputFormat());
  2. builder.setOwner(table.getOwner());
  3. builder.setLastAccessTime(table.getLastAccessTime());
  4. builder.setTableType(table.getTableType());
  5. builder.setSkipHeaderLineCount(table.getParameters().get("skip.header.line.count"));

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

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

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

  1. return getLastAccessTime();

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

  1. Assert.assertNull("Comparing OwnerName", createdTable.getOwner());
  2. Assert.assertNotEquals("Comparing CreateTime", 0, createdTable.getCreateTime());
  3. Assert.assertEquals("Comparing LastAccessTime", 0, createdTable.getLastAccessTime());
  4. Assert.assertEquals("Comparing Retention", 0, createdTable.getRetention());
  5. Assert.assertEquals("Comparing PartitionKeys", 0, createdTable.getPartitionKeys().size());

代码示例来源:origin: KylinOLAP/Kylin

  1. map.put(MetadataConstants.TABLE_EXD_OF, table.getSd().getOutputFormat());
  2. map.put(MetadataConstants.TABLE_EXD_OWNER, table.getOwner());
  3. map.put(MetadataConstants.TABLE_EXD_LAT, String.valueOf(table.getLastAccessTime()));
  4. map.put(MetadataConstants.TABLE_EXD_PC, partitionColumnString.toString());
  5. map.put(MetadataConstants.TABLE_EXD_TFS, String.valueOf(tableSize));

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

  1. public int getLastAccessTime() {
  2. return tTable.getLastAccessTime();
  3. }

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

  1. public int getLastAccessTime() {
  2. return tTable.getLastAccessTime();
  3. }

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

  1. return new Integer(getLastAccessTime());

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

  1. private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("Database:", tbl.getDbName(), tableInfo);
  3. formatOutput("Owner:", tbl.getOwner(), tableInfo);
  4. formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
  5. formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
  6. String protectMode = tbl.getProtectMode().toString();
  7. formatOutput("Protect Mode:", protectMode == null ? "None" : protectMode, tableInfo);
  8. formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
  9. if (!tbl.isView()) {
  10. formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
  11. }
  12. formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
  13. if (tbl.getParameters().size() > 0) {
  14. tableInfo.append("Table Parameters:").append(LINE_DELIM);
  15. displayAllParameters(tbl.getParameters(), tableInfo);
  16. }
  17. }

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

  1. private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("Database:", tbl.getDbName(), tableInfo);
  3. formatOutput("Owner:", tbl.getOwner(), tableInfo);
  4. formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
  5. formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
  6. String protectMode = tbl.getProtectMode().toString();
  7. formatOutput("Protect Mode:", protectMode == null ? "None" : protectMode, tableInfo);
  8. formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
  9. if (!tbl.isView()) {
  10. formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
  11. }
  12. formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
  13. if (tbl.getParameters().size() > 0) {
  14. tableInfo.append("Table Parameters:").append(LINE_DELIM);
  15. displayAllParameters(tbl.getParameters(), tableInfo);
  16. }
  17. }

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

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

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

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

代码示例来源:origin: com.alibaba.blink/flink-connector-hive

  1. /**
  2. * Create an CatalogTable from Hive table.
  3. */
  4. public static CatalogTable createCatalogTable(Table hiveTable, TableSchema tableSchema, TableStats tableStats) {
  5. return new CatalogTable(
  6. "hive",
  7. tableSchema,
  8. getPropertiesFromHiveTable(hiveTable),
  9. new RichTableSchema(tableSchema.getFieldNames(), tableSchema.getFieldTypes()),
  10. tableStats,
  11. null,
  12. getPartitionCols(hiveTable),
  13. hiveTable.getPartitionKeysSize() != 0,
  14. null,
  15. null,
  16. -1L,
  17. (long) hiveTable.getCreateTime(),
  18. (long) hiveTable.getLastAccessTime(),
  19. false);
  20. }

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

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

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

  1. public static XNativeTable nativeTableFromMetaTable(Table table) {
  2. XNativeTable xtable = XCF.createXNativeTable();
  3. xtable.setColumns(new XColumns());
  4. xtable.setName(table.getTableName());
  5. xtable.setDbname(table.getDbName());
  6. xtable.setOwner(table.getOwner());
  7. xtable.setCreatetime(table.getTTable().getCreateTime());
  8. xtable.setLastAccessTime(table.getTTable().getLastAccessTime());
  9. xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols()));
  10. xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table));
  11. xtable.setTableType(table.getTableType().name());
  12. return xtable;
  13. }

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

  1. public static XNativeTable nativeTableFromMetaTable(Table table) {
  2. XNativeTable xtable = XCF.createXNativeTable();
  3. xtable.setColumns(new XColumns());
  4. xtable.setName(table.getTableName());
  5. xtable.setDbname(table.getDbName());
  6. xtable.setOwner(table.getOwner());
  7. xtable.setCreatetime(table.getTTable().getCreateTime());
  8. xtable.setLastAccessTime(table.getTTable().getLastAccessTime());
  9. xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols()));
  10. xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table));
  11. xtable.setTableType(table.getTableType().name());
  12. return xtable;
  13. }

相关文章

Table类方法