Package io.trino.plugin.jdbc
Class JdbcModule
- java.lang.Object
-
- io.airlift.configuration.AbstractConfigurationAwareModule
-
- io.trino.plugin.jdbc.JdbcModule
-
- All Implemented Interfaces:
com.google.inject.Module,io.airlift.configuration.ConfigurationAwareModule
public class JdbcModule extends io.airlift.configuration.AbstractConfigurationAwareModule
-
-
Constructor Summary
Constructors Constructor Description JdbcModule(String catalogName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbindProcedure(com.google.inject.Binder binder, Class<? extends javax.inject.Provider<? extends Procedure>> type)static voidbindSessionPropertiesProvider(com.google.inject.Binder binder, Class<? extends SessionPropertiesProvider> type)static voidbindTablePropertiesProvider(com.google.inject.Binder binder, Class<? extends TablePropertiesProvider> type)static com.google.inject.multibindings.Multibinder<Procedure>procedureBinder(com.google.inject.Binder binder)static com.google.inject.multibindings.Multibinder<SessionPropertiesProvider>sessionPropertiesProviderBinder(com.google.inject.Binder binder)voidsetup(com.google.inject.Binder binder)voidshutdownRecordCursorExecutor(ExecutorService executor)static com.google.inject.multibindings.Multibinder<TablePropertiesProvider>tablePropertiesProviderBinder(com.google.inject.Binder binder)
-
-
-
Constructor Detail
-
JdbcModule
public JdbcModule(String catalogName)
-
-
Method Detail
-
setup
public void setup(com.google.inject.Binder binder)
- Specified by:
setupin classio.airlift.configuration.AbstractConfigurationAwareModule
-
sessionPropertiesProviderBinder
public static com.google.inject.multibindings.Multibinder<SessionPropertiesProvider> sessionPropertiesProviderBinder(com.google.inject.Binder binder)
-
bindSessionPropertiesProvider
public static void bindSessionPropertiesProvider(com.google.inject.Binder binder, Class<? extends SessionPropertiesProvider> type)
-
procedureBinder
public static com.google.inject.multibindings.Multibinder<Procedure> procedureBinder(com.google.inject.Binder binder)
-
bindProcedure
public static void bindProcedure(com.google.inject.Binder binder, Class<? extends javax.inject.Provider<? extends Procedure>> type)
-
tablePropertiesProviderBinder
public static com.google.inject.multibindings.Multibinder<TablePropertiesProvider> tablePropertiesProviderBinder(com.google.inject.Binder binder)
-
bindTablePropertiesProvider
public static void bindTablePropertiesProvider(com.google.inject.Binder binder, Class<? extends TablePropertiesProvider> type)
-
shutdownRecordCursorExecutor
@PreDestroy public void shutdownRecordCursorExecutor(ExecutorService executor)
-
-