Class StandardPropertyValue
java.lang.Object
org.apache.nifi.attribute.expression.language.StandardPropertyValue
- All Implemented Interfaces:
PropertyValue
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ParameterLookup
private final PreparedQuery
private final String
private final ResourceContext
private final ControllerServiceLookup
-
Constructor Summary
ConstructorDescriptionStandardPropertyValue
(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) StandardPropertyValue
(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) StandardPropertyValue
(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, PreparedQuery preparedQuery) Constructs a new StandardPropertyValue with the given value invalid input: '&' service lookup and indicates whether or not the rawValue contains any NiFi Expressions. -
Method Summary
Modifier and TypeMethodDescription<T extends ControllerService>
TasControllerService
(Class<T> serviceType) asDataSize
(DataUnit dataUnit) asDouble()
asFloat()
asLong()
asTimePeriod
(TimeUnit timeUnit) evaluateAttributeExpressions
(Map<String, String> attributes) evaluateAttributeExpressions
(Map<String, String> attributes, AttributeValueDecorator decorator) evaluateAttributeExpressions
(FlowFile flowFile) evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes) evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator) evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator, Map<String, String> stateValues) evaluateAttributeExpressions
(FlowFile flowFile, AttributeValueDecorator decorator) getValue()
boolean
boolean
isSet()
toString()
-
Field Details
-
rawValue
-
serviceLookup
-
preparedQuery
-
parameterLookup
-
resourceContext
-
-
Constructor Details
-
StandardPropertyValue
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) -
StandardPropertyValue
public StandardPropertyValue(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) -
StandardPropertyValue
public StandardPropertyValue(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, PreparedQuery preparedQuery) Constructs a new StandardPropertyValue with the given value invalid input: '&' service lookup and indicates whether or not the rawValue contains any NiFi Expressions. If it is unknown whether or not the value contains any NiFi Expressions, theinvalid reference
#StandardPropertyValue(ResourceContext, String, ControllerServiceLookup, ParameterLookup, EnvironmentVariables)
true
should be passed. However, if it is known that the value contains no NiFi Expression, that information should be provided so that calls toevaluateAttributeExpressions()
are much more efficient- Parameters:
resourceContext
- the context in which resources are to be understoodrawValue
- valueserviceLookup
- lookupparameterLookup
- the parameter lookuppreparedQuery
- query
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfacePropertyValue
-
asInteger
- Specified by:
asInteger
in interfacePropertyValue
-
asLong
- Specified by:
asLong
in interfacePropertyValue
-
asBoolean
- Specified by:
asBoolean
in interfacePropertyValue
-
asFloat
- Specified by:
asFloat
in interfacePropertyValue
-
asDouble
- Specified by:
asDouble
in interfacePropertyValue
-
asTimePeriod
- Specified by:
asTimePeriod
in interfacePropertyValue
-
asDuration
- Specified by:
asDuration
in interfacePropertyValue
-
asDataSize
- Specified by:
asDataSize
in interfacePropertyValue
-
evaluateAttributeExpressions
- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(Map<String, String> attributes) throws ProcessException- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(Map<String, String> attributes, AttributeValueDecorator decorator) throws ProcessException- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(AttributeValueDecorator decorator) throws ProcessException - Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String, String> additionalAttributes) throws ProcessException- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException - Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator) throws ProcessException- Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
evaluateAttributeExpressions
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator, Map<String, throws ProcessExceptionString> stateValues) - Specified by:
evaluateAttributeExpressions
in interfacePropertyValue
- Throws:
ProcessException
-
toString
-
asControllerService
- Specified by:
asControllerService
in interfacePropertyValue
-
asControllerService
public <T extends ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException - Specified by:
asControllerService
in interfacePropertyValue
- Throws:
IllegalArgumentException
-
asResource
- Specified by:
asResource
in interfacePropertyValue
-
asResources
- Specified by:
asResources
in interfacePropertyValue
-
isSet
public boolean isSet()- Specified by:
isSet
in interfacePropertyValue
-
isExpressionLanguagePresent
public boolean isExpressionLanguagePresent()- Specified by:
isExpressionLanguagePresent
in interfacePropertyValue
-