Class PropertyMappingUtils

java.lang.Object
org.apache.nifi.processors.pulsar.PropertyMappingUtils

public final class PropertyMappingUtils extends Object
  • Constructor Details

    • PropertyMappingUtils

      private PropertyMappingUtils()
  • Method Details

    • getMappedValues

      public static Map<String,String> getMappedValues(String mappings, Function<String,String> mapper)
      Given a comma-delimited list of key mappings and a value extraction function, yields a map of "destkey / value" pairs.
      Parameters:
      mappings - a comma-delimited list of "destkey=srckey" mappings. If no srckey is explicitly specified, then it is assumed that the destkey should also be used as the source key.
      mapper - a function that, given a source key, should return the corresponding value.
      Returns:
      the "destkey / value" map