Package org.apache.druid.query.lookup
Class LookupUtils
- java.lang.Object
-
- org.apache.druid.query.lookup.LookupUtils
-
public class LookupUtils extends Object
Utility class for lookup related things
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,org.apache.druid.query.lookup.LookupExtractorFactoryContainer>tryConvertObjectMapToLookupConfigMap(Map<String,Object> lookupNameToGenericConfig, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Takes a map of String to Object, representing lookup name to generic lookup config, and attempts to construct a map from String toLookupExtractorFactoryContainer.
-
-
-
Method Detail
-
tryConvertObjectMapToLookupConfigMap
public static Map<String,org.apache.druid.query.lookup.LookupExtractorFactoryContainer> tryConvertObjectMapToLookupConfigMap(Map<String,Object> lookupNameToGenericConfig, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Takes a map of String to Object, representing lookup name to generic lookup config, and attempts to construct a map from String toLookupExtractorFactoryContainer. Any lookup configs that are not able to be converted toLookupExtractorFactoryContainer, will be logged as warning, and will not be included in the map returned.- Parameters:
lookupNameToGenericConfig- The lookup generic config map.objectMapper- The object mapper to use to convert bytes toLookupExtractorFactoryContainer- Returns:
-
-