public InlineLookupExtractionFunction(IDictionary <string, string> lookupMap, bool retainMissingValue = false, string replaceMissingValueWith = null, bool injective = false, bool optimize = true)
 {
     Lookup                  = new LookupMap(lookupMap);
     RetainMissingValue      = retainMissingValue;
     ReplaceMissingValueWith = replaceMissingValueWith;
     Injective               = injective;
     Optimize                = optimize;
 }
Beispiel #2
0
        public LookupDimension(string dimension, IDictionary <string, string> lookupMap, string outputName = null, string replaceMissingValueWith = null, bool retainMissingValue = false)
        {
            Dimension  = dimension;
            OutputName = outputName ?? dimension;
            ReplaceMissingValueWith = replaceMissingValueWith;
            RetainMissingValue      = retainMissingValue;
            Lookup = new LookupMap(lookupMap);

            // It is illegal to set retainMissingValue = true and also specify a replaceMissingValueWith.
            if (!string.IsNullOrEmpty(replaceMissingValueWith))
            {
                RetainMissingValue = false;
            }
        }