java.lang.Object
org.apache.nifi.attribute.expression.language.ValueLookup
All Implemented Interfaces:
Map<String,String>

final class ValueLookup extends Object implements Map<String,String>
A convenience class to encapsulate the logic of variable substitution based first on any additional variable maps, then flow file properties, then flow file attributes, and finally the provided system and env variable registry.
  • Field Details

    • maps

      private final List<Map<String,String>> maps
    • environmentVariables

      private final org.apache.nifi.registry.EnvironmentVariables environmentVariables
  • Constructor Details

    • ValueLookup

      ValueLookup(org.apache.nifi.flowfile.FlowFile flowFile, Map<String,String>... additionalMaps)
      Constructs a ValueLookup where values are looked up first based any provided additional maps, then flowfile properties, then flowfile attributes, then based on the provided system and env variable registry. The lookup is immutable and operations which attempt to alter state will throw UnsupportedOperationException
      Parameters:
      flowFile - the flowFile to pull attributes from; may be null
      additionalMaps - the maps to pull values from; may be null or empty
  • Method Details