Class LookupUtils


  • public class LookupUtils
    extends Object
    Utility class for lookup related things
    • 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 to LookupExtractorFactoryContainer. Any lookup configs that are not able to be converted to LookupExtractorFactoryContainer, 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 to LookupExtractorFactoryContainer
        Returns: