本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getTablesForDb()
方法的一些代码示例,展示了Hive.getTablesForDb()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getTablesForDb()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getTablesForDb
[英]Returns all existing tables from the given database which match the given pattern. The matching occurs as per Java regular expressions
[中]返回给定数据库中与给定模式匹配的所有现有表。匹配按照Java正则表达式进行
代码示例来源:origin: apache/hive
} else {
LOG.debug("pattern: {}", showTblStatus.getPattern());
List<String> tblStr = db.getTablesForDb(showTblStatus.getDbName(),
showTblStatus.getPattern());
SortedSet<String> sortedTbls = new TreeSet<String>(tblStr);
代码示例来源:origin: apache/drill
} else {
LOG.info("pattern: " + showTblStatus.getPattern());
List<String> tblStr = db.getTablesForDb(showTblStatus.getDbName(),
showTblStatus.getPattern());
SortedSet<String> sortedTbls = new TreeSet<String>(tblStr);
代码示例来源:origin: apache/drill
if (tableName == null || "".equals(tableName)) {
List<String> tables = hive.getTablesForDb(dbName, ".*");
for (String currentTableName : tables) {
checkTable(dbName, currentTableName, null, result);
代码示例来源:origin: apache/hive
hm.createTable(tbl2);
List<String> fts = hm.getTablesForDb(dbName, ".*");
assertEquals(ts, fts);
assertEquals(2, fts.size());
fts = hm.getTablesForDb(dbName, ".*1");
assertEquals(1, fts.size());
assertEquals(ts.get(0), fts.get(0));
代码示例来源:origin: com.facebook.presto.hive/hive-apache
if (tableName == null || "".equals(tableName)) {
List<String> tables = hive.getTablesForDb(dbName, ".*");
for (String currentTableName : tables) {
checkTable(dbName, currentTableName, null, result);
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
if (tableName == null || "".equals(tableName)) {
List<String> tables = hive.getTablesForDb(dbName, ".*");
for (String currentTableName : tables) {
checkTable(dbName, currentTableName, null, result);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
} else {
LOG.info("pattern: " + showTblStatus.getPattern());
List<String> tblStr = db.getTablesForDb(showTblStatus.getDbName(),
showTblStatus.getPattern());
SortedSet<String> sortedTbls = new TreeSet<String>(tblStr);
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
} else {
LOG.info("pattern: " + showTblStatus.getPattern());
List<String> tblStr = db.getTablesForDb(showTblStatus.getDbName(),
showTblStatus.getPattern());
SortedSet<String> sortedTbls = new TreeSet<String>(tblStr);
内容来源于网络,如有侵权,请联系作者删除!