use of com.netflix.metacat.common.dto.DatabaseDto in project metacat by Netflix.
the class CatalogThriftHiveMetastore method get_database.
/**
* {@inheritDoc}
*/
@Override
public Database get_database(final String name) throws TException {
return requestWrapper("get_database", new Object[] { name }, () -> {
final String databaseName = normalizeIdentifier(name);
final DatabaseDto dto = v1.getDatabase(catalogName, databaseName, true);
return hiveConverters.metacatToHiveDatabase(dto);
});
}
Aggregations