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;
}
Aggregations