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 AttributeExpressionpublic java.lang.String evaluate()
throws ProcessException
evaluate in interface AttributeExpressionProcessException - if unable to evaluatepublic java.lang.String evaluate(AttributeValueDecorator decorator) throws ProcessException
AttributeExpressionevaluate in interface AttributeExpressiondecorator - to execute on the resulting expression valueProcessException - if failure in evaluationpublic java.lang.String evaluate(FlowFile flowFile) throws ProcessException
AttributeExpressionevaluate in interface AttributeExpressionflowFile - to evaluateProcessException - if failure evaluatingpublic java.lang.String evaluate(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
AttributeExpressionevaluate in interface AttributeExpressionflowFile - to evaluatedecorator - for evaluationProcessException - if failed to evaluate