Package org.apache.druid.query.lookup
Class LookupUtils
java.lang.Object
org.apache.druid.query.lookup.LookupUtils
Utility class for lookup related things
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,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 Details
-
tryConvertObjectMapToLookupConfigMap
public static Map<String,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:
-