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 ParameterLookupprivate final PreparedQueryprivate final Stringprivate final org.apache.nifi.components.resource.ResourceContextprivate 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.ResourceReferenceorg.apache.nifi.components.resource.ResourceReferencesasTimePeriod(TimeUnit timeUnit) org.apache.nifi.components.PropertyValueorg.apache.nifi.components.PropertyValueevaluateAttributeExpressions(Map<String, String> attributes) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(Map<String, String> attributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator, Map<String, String> stateValues) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.expression.AttributeValueDecorator decorator) getValue()booleanbooleanisSet()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 ortrueshould 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:
getValuein interfaceorg.apache.nifi.components.PropertyValue
-
asInteger
- Specified by:
asIntegerin interfaceorg.apache.nifi.components.PropertyValue
-
asLong
- Specified by:
asLongin interfaceorg.apache.nifi.components.PropertyValue
-
asBoolean
- Specified by:
asBooleanin interfaceorg.apache.nifi.components.PropertyValue
-
asFloat
- Specified by:
asFloatin interfaceorg.apache.nifi.components.PropertyValue
-
asDouble
- Specified by:
asDoublein interfaceorg.apache.nifi.components.PropertyValue
-
asTimePeriod
- Specified by:
asTimePeriodin interfaceorg.apache.nifi.components.PropertyValue
-
asDuration
- Specified by:
asDurationin interfaceorg.apache.nifi.components.PropertyValue
-
asDataSize
- Specified by:
asDataSizein interfaceorg.apache.nifi.components.PropertyValue
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions() throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin 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:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
toString
-
asControllerService
public org.apache.nifi.controller.ControllerService asControllerService()- Specified by:
asControllerServicein interfaceorg.apache.nifi.components.PropertyValue
-
asControllerService
public <T extends org.apache.nifi.controller.ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException - Specified by:
asControllerServicein interfaceorg.apache.nifi.components.PropertyValue- Throws:
IllegalArgumentException
-
asResource
public org.apache.nifi.components.resource.ResourceReference asResource()- Specified by:
asResourcein interfaceorg.apache.nifi.components.PropertyValue
-
asResources
public org.apache.nifi.components.resource.ResourceReferences asResources()- Specified by:
asResourcesin interfaceorg.apache.nifi.components.PropertyValue
-
asAllowableValue
- Specified by:
asAllowableValuein interfaceorg.apache.nifi.components.PropertyValue- Throws:
IllegalArgumentException
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceorg.apache.nifi.components.PropertyValue
-
isExpressionLanguagePresent
public boolean isExpressionLanguagePresent()- Specified by:
isExpressionLanguagePresentin interfaceorg.apache.nifi.components.PropertyValue
-