public class InvalidPreparedQuery extends Object implements PreparedQuery
AttributeExpressionLanguageException when attempting to evaluate the
query. This allows a PreparedQuery to be created, even though it can't be
evaluated.| Modifier and Type | Field and Description |
|---|---|
private String |
explanation |
private String |
query |
| Constructor and Description |
|---|
InvalidPreparedQuery(String query,
String explanation) |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluateExpressions(EvaluationContext evaluationContext,
AttributeValueDecorator decorator) |
Set<String> |
getExplicitlyReferencedAttributes()
Returns a Set of all attributes that are explicitly referenced by the Prepared Query.
|
VariableImpact |
getVariableImpact()
Returns a
VariableImpact that can be used to determine whether or not a given
variable impacts this Expression. |
boolean |
isExpressionLanguagePresent() |
public String evaluateExpressions(EvaluationContext evaluationContext, AttributeValueDecorator decorator) throws ProcessException
evaluateExpressions in interface PreparedQueryProcessExceptionpublic boolean isExpressionLanguagePresent()
isExpressionLanguagePresent in interface PreparedQuerypublic VariableImpact getVariableImpact()
PreparedQueryVariableImpact that can be used to determine whether or not a given
variable impacts this Expression.getVariableImpact in interface PreparedQueryVariableImpact that can be used to determine whether or not a given
variable impacts this Expression.public Set<String> getExplicitlyReferencedAttributes()
PreparedQuery${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.getExplicitlyReferencedAttributes in interface PreparedQueryCopyright © 2022 Apache NiFi Project. All rights reserved.