public class StandardPropertyValue extends Object implements PropertyValue
Modifier and Type | Field and Description |
---|---|
private PreparedQuery |
preparedQuery |
private String |
rawValue |
private ControllerServiceLookup |
serviceLookup |
private VariableRegistry |
variableRegistry |
Constructor and Description |
---|
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup) |
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
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,
VariableRegistry variableRegistry) |
private final String rawValue
private final ControllerServiceLookup serviceLookup
private final PreparedQuery preparedQuery
private final VariableRegistry variableRegistry
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup)
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, VariableRegistry variableRegistry)
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, PreparedQuery preparedQuery, VariableRegistry variableRegistry)
StandardPropertyValue(String, ControllerServiceLookup, 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
- lookuppreparedQuery
- queryvariableRegistry
- variableRegistrypublic String getValue()
getValue
in interface PropertyValue
public Integer asInteger()
asInteger
in interface PropertyValue
public Long asLong()
asLong
in interface PropertyValue
public Boolean asBoolean()
asBoolean
in interface PropertyValue
public Float asFloat()
asFloat
in interface PropertyValue
public Double asDouble()
asDouble
in interface PropertyValue
public Long asTimePeriod(TimeUnit timeUnit)
asTimePeriod
in interface PropertyValue
public Double asDataSize(DataUnit dataUnit)
asDataSize
in interface PropertyValue
public PropertyValue evaluateAttributeExpressions() throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(Map<String,String> attributes) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(Map<String,String> attributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public ControllerService asControllerService()
asControllerService
in interface PropertyValue
public <T extends ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException
asControllerService
in interface PropertyValue
IllegalArgumentException
public boolean isSet()
isSet
in interface PropertyValue
Copyright © 2016 Apache NiFi Project. All rights reserved.