Class StandardPropertyValue
java.lang.Object
org.apache.nifi.attribute.expression.language.StandardPropertyValue
- All Implemented Interfaces:
org.apache.nifi.components.PropertyValue
public class StandardPropertyValue
extends Object
implements org.apache.nifi.components.PropertyValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParameterLookup
private final PreparedQuery
private final String
private final org.apache.nifi.components.resource.ResourceContext
private final org.apache.nifi.controller.ControllerServiceLookup
-
Constructor Summary
ConstructorsConstructorDescriptionStandardPropertyValue
(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) StandardPropertyValue
(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) StandardPropertyValue
(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.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<E extends Enum<E>>
EasAllowableValue
(Class<E> enumType) org.apache.nifi.controller.ControllerService
<T extends org.apache.nifi.controller.ControllerService>
TasControllerService
(Class<T> serviceType) asDataSize
(org.apache.nifi.processor.DataUnit dataUnit) asDouble()
asFloat()
asLong()
org.apache.nifi.components.resource.ResourceReference
org.apache.nifi.components.resource.ResourceReferences
asTimePeriod
(TimeUnit timeUnit) org.apache.nifi.components.PropertyValue
org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(Map<String, String> attributes) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(Map<String, String> attributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.flowfile.FlowFile flowFile) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator, Map<String, String> stateValues) org.apache.nifi.components.PropertyValue
evaluateAttributeExpressions
(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.expression.AttributeValueDecorator decorator) getValue()
boolean
boolean
isSet()
toString()
-
Field Details
-
rawValue
-
serviceLookup
private final org.apache.nifi.controller.ControllerServiceLookup serviceLookup -
preparedQuery
-
parameterLookup
-
resourceContext
private final org.apache.nifi.components.resource.ResourceContext resourceContext
-
-
Constructor Details
-
StandardPropertyValue
public StandardPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) -
StandardPropertyValue
public StandardPropertyValue(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup) -
StandardPropertyValue
public StandardPropertyValue(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.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, the StandardPropertyValue constructor should be used ortrue
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 interfaceorg.apache.nifi.components.PropertyValue
-
asInteger
- Specified by:
asInteger
in interfaceorg.apache.nifi.components.PropertyValue
-
asLong
- Specified by:
asLong
in interfaceorg.apache.nifi.components.PropertyValue
-
asBoolean
- Specified by:
asBoolean
in interfaceorg.apache.nifi.components.PropertyValue
-
asFloat
- Specified by:
asFloat
in interfaceorg.apache.nifi.components.PropertyValue
-
asDouble
- Specified by:
asDouble
in interfaceorg.apache.nifi.components.PropertyValue
-
asTimePeriod
- Specified by:
asTimePeriod
in interfaceorg.apache.nifi.components.PropertyValue
-
asDuration
- Specified by:
asDuration
in interfaceorg.apache.nifi.components.PropertyValue
-
asDataSize
- Specified by:
asDataSize
in interfaceorg.apache.nifi.components.PropertyValue
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions() throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(Map<String, String> attributes) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(Map<String, String> attributes, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator, Map<String, throws org.apache.nifi.processor.exception.ProcessExceptionString> stateValues) - Specified by:
evaluateAttributeExpressions
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
org.apache.nifi.processor.exception.ProcessException
-
toString
-
asControllerService
public org.apache.nifi.controller.ControllerService asControllerService()- Specified by:
asControllerService
in interfaceorg.apache.nifi.components.PropertyValue
-
asControllerService
public <T extends org.apache.nifi.controller.ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException - Specified by:
asControllerService
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
IllegalArgumentException
-
asResource
public org.apache.nifi.components.resource.ResourceReference asResource()- Specified by:
asResource
in interfaceorg.apache.nifi.components.PropertyValue
-
asResources
public org.apache.nifi.components.resource.ResourceReferences asResources()- Specified by:
asResources
in interfaceorg.apache.nifi.components.PropertyValue
-
asAllowableValue
- Specified by:
asAllowableValue
in interfaceorg.apache.nifi.components.PropertyValue
- Throws:
IllegalArgumentException
-
isSet
public boolean isSet()- Specified by:
isSet
in interfaceorg.apache.nifi.components.PropertyValue
-
isExpressionLanguagePresent
public boolean isExpressionLanguagePresent()- Specified by:
isExpressionLanguagePresent
in interfaceorg.apache.nifi.components.PropertyValue
-