Class InvalidPreparedQuery
java.lang.Object
org.apache.nifi.attribute.expression.language.InvalidPreparedQuery
- All Implemented Interfaces:
PreparedQuery
An implementation of PreparedQuery that throws an
AttributeExpressionLanguageException when attempting to evaluate the
query. This allows a PreparedQuery to be created, even though it can't be
evaluated.-
Field Summary
Fields -
Constructor Summary
Constructors -
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 aVariableImpactthat can be used to determine whether or not a given variable impacts this Expression.boolean
-
Field Details
-
query
-
explanation
-
-
Constructor Details
-
InvalidPreparedQuery
-
-
Method Details
-
evaluateExpressions
public String evaluateExpressions(EvaluationContext evaluationContext, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateExpressionsin interfacePreparedQuery- Throws:
org.apache.nifi.processor.exception.ProcessException
-
isExpressionLanguagePresent
public boolean isExpressionLanguagePresent()- Specified by:
isExpressionLanguagePresentin interfacePreparedQuery
-
getVariableImpact
Description copied from interface:PreparedQueryReturns aVariableImpactthat can be used to determine whether or not a given variable impacts this Expression.- Specified by:
getVariableImpactin interfacePreparedQuery- Returns:
- a
VariableImpactthat can be used to determine whether or not a given variable impacts this Expression.
-
getExplicitlyReferencedAttributes
Description copied from interface:PreparedQueryReturns 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.- Specified by:
getExplicitlyReferencedAttributesin interfacePreparedQuery- Returns:
- a Set of all attributes that are explicitly referenced by the Prepared Query
-
getExpressions
- Specified by:
getExpressionsin interfacePreparedQuery- Returns:
- the list of all Expressions that are used to make up the Prepared Query
-