Interface PreparedQuery
- All Known Implementing Classes:
EmptyPreparedQuery
,InvalidPreparedQuery
,StandardPreparedQuery
public interface PreparedQuery
-
Method Summary
Modifier and TypeMethodDescriptionevaluateExpressions
(EvaluationContext evaluationContext, org.apache.nifi.expression.AttributeValueDecorator decorator) Returns a Set of all attributes that are explicitly referenced by the Prepared Query.Returns aVariableImpact
that can be used to determine whether or not a given variable impacts this Expression.boolean
-
Method Details
-
evaluateExpressions
String evaluateExpressions(EvaluationContext evaluationContext, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Throws:
org.apache.nifi.processor.exception.ProcessException
-
isExpressionLanguagePresent
boolean isExpressionLanguagePresent() -
getVariableImpact
VariableImpact getVariableImpact()Returns aVariableImpact
that can be used to determine whether or not a given variable impacts this Expression.- Returns:
- a
VariableImpact
that can be used to determine whether or not a given variable impacts this Expression.
-
getExplicitlyReferencedAttributes
Returns a Set of all attributes that are explicitly referenced by the Prepared Query. There are some expressions, however, such as${allMatchingAttributes('a.*'):gt(4)}
that reference multiple attributes, but those attributes' names cannot be determined a priori. As a result, those attributes will not be included in the returned set.- Returns:
- a Set of all attributes that are explicitly referenced by the Prepared Query
-
getExpressions
List<Expression> getExpressions()- Returns:
- the list of all Expressions that are used to make up the Prepared Query
-