public class StandardAttributeExpression extends java.lang.Object implements AttributeExpression
AttributeExpression.ResultType
Constructor and Description |
---|
StandardAttributeExpression(Query query) |
StandardAttributeExpression(Query query,
VariableRegistry variableRegistry) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
evaluate() |
java.lang.String |
evaluate(AttributeValueDecorator decorator)
Evaluates the expression without additional attributes but enables the
expression result to be decorated before returning.
|
java.lang.String |
evaluate(FlowFile flowFile)
Evaluates the expression providing access to additional variables
including the flow file properties such as file size, identifier, etc..
|
java.lang.String |
evaluate(FlowFile flowFile,
AttributeValueDecorator decorator)
Evaluates the expression providing access to additional variables
including the flow file properties such as file size, identifier, etc..
|
AttributeExpression.ResultType |
getResultType() |
public StandardAttributeExpression(Query query)
public StandardAttributeExpression(Query query, VariableRegistry variableRegistry)
public AttributeExpression.ResultType getResultType()
getResultType
in interface AttributeExpression
public java.lang.String evaluate() throws ProcessException
evaluate
in interface AttributeExpression
ProcessException
- if unable to evaluatepublic java.lang.String evaluate(AttributeValueDecorator decorator) throws ProcessException
AttributeExpression
evaluate
in interface AttributeExpression
decorator
- to execute on the resulting expression valueProcessException
- if failure in evaluationpublic java.lang.String evaluate(FlowFile flowFile) throws ProcessException
AttributeExpression
evaluate
in interface AttributeExpression
flowFile
- to evaluateProcessException
- if failure evaluatingpublic java.lang.String evaluate(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
AttributeExpression
evaluate
in interface AttributeExpression
flowFile
- to evaluatedecorator
- for evaluationProcessException
- if failed to evaluate