Search in sources :

Example 1 with SchemaCache

use of com.airbnb.airpal.presto.metadata.SchemaCache in project airpal by airbnb.

the class AirpalModule method provideSchemaCache.

@Singleton
@Provides
public SchemaCache provideSchemaCache(QueryRunnerFactory queryRunnerFactory, @Named("presto") ExecutorService executorService) {
    final SchemaCache cache = new SchemaCache(queryRunnerFactory, executorService);
    cache.populateCache(config.getPrestoCatalog());
    return cache;
}
Also used : SchemaCache(com.airbnb.airpal.presto.metadata.SchemaCache) Singleton(com.google.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

SchemaCache (com.airbnb.airpal.presto.metadata.SchemaCache)1 Provides (com.google.inject.Provides)1 Singleton (com.google.inject.Singleton)1