Search in sources :

Example 11 with DatabaseDto

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);
    });
}
Also used : DatabaseDto(com.netflix.metacat.common.dto.DatabaseDto)

Aggregations

DatabaseDto (com.netflix.metacat.common.dto.DatabaseDto)11 QualifiedName (com.netflix.metacat.common.QualifiedName)6 MetacatRequestContext (com.netflix.metacat.common.MetacatRequestContext)5 TableDto (com.netflix.metacat.common.dto.TableDto)3 ConnectorContext (com.netflix.metacat.common.server.connectors.ConnectorContext)3 DatabaseNotFoundException (com.netflix.metacat.common.server.connectors.exception.DatabaseNotFoundException)3 Functions (com.google.common.base.Functions)2 Splitter (com.google.common.base.Splitter)2 Strings (com.google.common.base.Strings)2 Throwables (com.google.common.base.Throwables)2 Lists (com.google.common.collect.Lists)2 Sets (com.google.common.collect.Sets)2 Futures (com.google.common.util.concurrent.Futures)2 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)2 ListeningExecutorService (com.google.common.util.concurrent.ListeningExecutorService)2 MoreExecutors (com.google.common.util.concurrent.MoreExecutors)2 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)2 CatalogDto (com.netflix.metacat.common.dto.CatalogDto)2 CatalogMappingDto (com.netflix.metacat.common.dto.CatalogMappingDto)2 HasMetadata (com.netflix.metacat.common.dto.HasMetadata)2