Package io.trino.plugin.hive
Class HiveModule
- java.lang.Object
-
- io.trino.plugin.hive.HiveModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class HiveModule extends Object implements com.google.inject.Module
-
-
Constructor Summary
Constructors Constructor Description HiveModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)ExecutorServicecreateHiveClientExecutor(CatalogName catalogName)ScheduledExecutorServicecreateHiveTransactionHeartbeatExecutor(CatalogName catalogName, HiveConfig hiveConfig)Function<HiveTransactionHandle,SemiTransactionalHiveMetastore>createMetastoreGetter(HiveTransactionManager transactionManager)
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
createHiveClientExecutor
@Singleton @Provides public ExecutorService createHiveClientExecutor(CatalogName catalogName)
-
createHiveTransactionHeartbeatExecutor
@Singleton @Provides public ScheduledExecutorService createHiveTransactionHeartbeatExecutor(CatalogName catalogName, HiveConfig hiveConfig)
-
createMetastoreGetter
@Singleton @Provides public Function<HiveTransactionHandle,SemiTransactionalHiveMetastore> createMetastoreGetter(HiveTransactionManager transactionManager)
-
-