Package org.apache.druid.guice
Class BuiltInTypesModule
java.lang.Object
org.apache.druid.guice.BuiltInTypesModule
- All Implemented Interfaces:
com.google.inject.Module,DruidModule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classthis is used as a vehicle to register the correct version of the system default nested column handler and multi value handling mode by side effect with the help of binding toLifecycleso thatinitDimensionHandlerAndMvHandlingMode(DefaultColumnFormatConfig)can be called with the injectedDefaultColumnFormatConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) static IndexSpecList<? extends com.fasterxml.jackson.databind.Module>static List<com.fasterxml.jackson.databind.module.SimpleModule>static IntegerinitDimensionHandlerAndMvHandlingMode(DefaultColumnFormatConfig formatsConfig) static voidHelper for wiring stuff up for testsstatic voidsetMaxStringLength(Integer maxStringLength)
-
Constructor Details
-
BuiltInTypesModule
public BuiltInTypesModule()
-
-
Method Details
-
getStringMultiValueHandlingMode
- Returns:
- the configured string multi value handling mode from the system config if set; otherwise, returns the default.
-
getDefaultIndexSpec
-
getJacksonModules
- Specified by:
getJacksonModulesin interfaceDruidModule
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-
initDimensionHandlerAndMvHandlingMode
@Provides public BuiltInTypesModule.SideEffectRegisterer initDimensionHandlerAndMvHandlingMode(DefaultColumnFormatConfig formatsConfig) -
getJacksonModulesList
-
registerHandlersAndSerde
public static void registerHandlersAndSerde()Helper for wiring stuff up for tests -
setMaxStringLength
-
getMaxStringLength
-