本文整理了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
暂无
代码示例来源:origin: apache/hive
public int getLastAccessTime() {
return tTable.getLastAccessTime();
}
代码示例来源:origin: apache/drill
public int getLastAccessTime() {
return tTable.getLastAccessTime();
}
代码示例来源:origin: apache/drill
private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl,
boolean isOutputPadded) {
formatOutput("Database:", tbl.getDbName(), tableInfo);
formatOutput("Owner:", tbl.getOwner(), tableInfo);
formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
if (!tbl.isView()) {
formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
}
formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
if (tbl.getParameters().size() > 0) {
tableInfo.append("Table Parameters:").append(LINE_DELIM);
displayAllParameters(tbl.getParameters(), tableInfo, false, isOutputPadded);
}
}
代码示例来源:origin: apache/hive
private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl,
boolean isOutputPadded) {
formatOutput("Database:", tbl.getDbName(), tableInfo);
formatOutput("OwnerType:", (tbl.getOwnerType() != null) ? tbl.getOwnerType().name() : "null", tableInfo);
formatOutput("Owner:", tbl.getOwner(), tableInfo);
formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
if (!tbl.isView()) {
formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
}
formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
if (tbl.getParameters().size() > 0) {
tableInfo.append("Table Parameters:").append(LINE_DELIM);
displayAllParameters(tbl.getParameters(), tableInfo, false, isOutputPadded);
}
}
代码示例来源:origin: apache/kylin
builder.setSdOutputFormat(table.getSd().getOutputFormat());
builder.setOwner(table.getOwner());
builder.setLastAccessTime(table.getLastAccessTime());
builder.setTableType(table.getTableType());
builder.setSkipHeaderLineCount(table.getParameters().get("skip.header.line.count"));
代码示例来源:origin: apache/hive
.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(), tbl.isRewriteEnabled(),
代码示例来源:origin: apache/hive
return getLastAccessTime();
代码示例来源:origin: apache/hive
Assert.assertNull("Comparing OwnerName", createdTable.getOwner());
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: KylinOLAP/Kylin
map.put(MetadataConstants.TABLE_EXD_OF, table.getSd().getOutputFormat());
map.put(MetadataConstants.TABLE_EXD_OWNER, table.getOwner());
map.put(MetadataConstants.TABLE_EXD_LAT, String.valueOf(table.getLastAccessTime()));
map.put(MetadataConstants.TABLE_EXD_PC, partitionColumnString.toString());
map.put(MetadataConstants.TABLE_EXD_TFS, String.valueOf(tableSize));
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
public int getLastAccessTime() {
return tTable.getLastAccessTime();
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
public int getLastAccessTime() {
return tTable.getLastAccessTime();
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
return new Integer(getLastAccessTime());
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl) {
formatOutput("Database:", tbl.getDbName(), tableInfo);
formatOutput("Owner:", tbl.getOwner(), tableInfo);
formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
String protectMode = tbl.getProtectMode().toString();
formatOutput("Protect Mode:", protectMode == null ? "None" : protectMode, tableInfo);
formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
if (!tbl.isView()) {
formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
}
formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
if (tbl.getParameters().size() > 0) {
tableInfo.append("Table Parameters:").append(LINE_DELIM);
displayAllParameters(tbl.getParameters(), tableInfo);
}
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
private static void getTableMetaDataInformation(StringBuilder tableInfo, Table tbl) {
formatOutput("Database:", tbl.getDbName(), tableInfo);
formatOutput("Owner:", tbl.getOwner(), tableInfo);
formatOutput("CreateTime:", formatDate(tbl.getTTable().getCreateTime()), tableInfo);
formatOutput("LastAccessTime:", formatDate(tbl.getTTable().getLastAccessTime()), tableInfo);
String protectMode = tbl.getProtectMode().toString();
formatOutput("Protect Mode:", protectMode == null ? "None" : protectMode, tableInfo);
formatOutput("Retention:", Integer.toString(tbl.getRetention()), tableInfo);
if (!tbl.isView()) {
formatOutput("Location:", tbl.getDataLocation().toString(), tableInfo);
}
formatOutput("Table Type:", tbl.getTableType().name(), tableInfo);
if (tbl.getParameters().size() > 0) {
tableInfo.append("Table Parameters:").append(LINE_DELIM);
displayAllParameters(tbl.getParameters(), tableInfo);
}
}
代码示例来源:origin: edu.berkeley.cs.shark/hive-metastore
.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),
代码示例来源:origin: com.alibaba.blink/flink-connector-hive
/**
* Create an CatalogTable from Hive table.
*/
public static CatalogTable createCatalogTable(Table hiveTable, TableSchema tableSchema, TableStats tableStats) {
return new CatalogTable(
"hive",
tableSchema,
getPropertiesFromHiveTable(hiveTable),
new RichTableSchema(tableSchema.getFieldNames(), tableSchema.getFieldTypes()),
tableStats,
null,
getPartitionCols(hiveTable),
hiveTable.getPartitionKeysSize() != 0,
null,
null,
-1L,
(long) hiveTable.getCreateTime(),
(long) hiveTable.getLastAccessTime(),
false);
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
.getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(),
convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(),
tbl.getViewOriginalText(), tbl.getViewExpandedText(),
代码示例来源:origin: apache/lens
public static XNativeTable nativeTableFromMetaTable(Table table) {
XNativeTable xtable = XCF.createXNativeTable();
xtable.setColumns(new XColumns());
xtable.setName(table.getTableName());
xtable.setDbname(table.getDbName());
xtable.setOwner(table.getOwner());
xtable.setCreatetime(table.getTTable().getCreateTime());
xtable.setLastAccessTime(table.getTTable().getLastAccessTime());
xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols()));
xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table));
xtable.setTableType(table.getTableType().name());
return xtable;
}
代码示例来源:origin: org.apache.lens/lens-cube
public static XNativeTable nativeTableFromMetaTable(Table table) {
XNativeTable xtable = XCF.createXNativeTable();
xtable.setColumns(new XColumns());
xtable.setName(table.getTableName());
xtable.setDbname(table.getDbName());
xtable.setOwner(table.getOwner());
xtable.setCreatetime(table.getTTable().getCreateTime());
xtable.setLastAccessTime(table.getTTable().getLastAccessTime());
xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols()));
xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table));
xtable.setTableType(table.getTableType().name());
return xtable;
}
内容来源于网络,如有侵权,请联系作者删除!