public class StandardPropertyValue extends Object implements PropertyValue
| Modifier and Type | Field and Description |
|---|---|
private ParameterLookup |
parameterLookup |
private PreparedQuery |
preparedQuery |
private String |
rawValue |
private ControllerServiceLookup |
serviceLookup |
private VariableRegistry |
variableRegistry |
| Constructor and Description |
|---|
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup) |
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup,
PreparedQuery preparedQuery,
VariableRegistry variableRegistry)
Constructs a new StandardPropertyValue with the given value & service
lookup and indicates whether or not the rawValue contains any NiFi
Expressions.
|
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup,
VariableRegistry variableRegistry) |
private final String rawValue
private final ControllerServiceLookup serviceLookup
private final PreparedQuery preparedQuery
private final VariableRegistry variableRegistry
private final ParameterLookup parameterLookup
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup)
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, VariableRegistry variableRegistry)
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, PreparedQuery preparedQuery, VariableRegistry variableRegistry)
StandardPropertyValue(String, ControllerServiceLookup, ParameterLookup, VariableRegistry)
constructor should be used or true should be passed.
However, if it is known that the value contains no NiFi Expression, that
information should be provided so that calls to
evaluateAttributeExpressions() are much more efficientrawValue - valueserviceLookup - lookupparameterLookup - the parameter lookuppreparedQuery - queryvariableRegistry - variableRegistrypublic String getValue()
getValue in interface PropertyValuepublic Integer asInteger()
asInteger in interface PropertyValuepublic Long asLong()
asLong in interface PropertyValuepublic Boolean asBoolean()
asBoolean in interface PropertyValuepublic Float asFloat()
asFloat in interface PropertyValuepublic Double asDouble()
asDouble in interface PropertyValuepublic Long asTimePeriod(TimeUnit timeUnit)
asTimePeriod in interface PropertyValuepublic Double asDataSize(DataUnit dataUnit)
asDataSize in interface PropertyValuepublic PropertyValue evaluateAttributeExpressions() throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(Map<String,String> attributes) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(Map<String,String> attributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator, Map<String,String> stateValues) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic ControllerService asControllerService()
asControllerService in interface PropertyValuepublic <T extends ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException
asControllerService in interface PropertyValueIllegalArgumentExceptionpublic boolean isSet()
isSet in interface PropertyValuepublic boolean isExpressionLanguagePresent()
isExpressionLanguagePresent in interface PropertyValueCopyright © 2021 Apache NiFi Project. All rights reserved.