}
ImmutableList.Builder<TableNameInfo> builder = ImmutableList.builder();
for (String db : databases) {
List<String> tables = getMetaStoreClient().getAllTables(db);
for (String table : tables) {
builder.add(new TableNameInfo(db, table));
}
}
return builder.build();
} catch (TException e) {
throw new ExploreException("Error connecting to Hive metastore", e);