Interface PreparedQuery

All Known Implementing Classes:
EmptyPreparedQuery, InvalidPreparedQuery, StandardPreparedQuery

public interface PreparedQuery
  • 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 a VariableImpact 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

      Set<String> 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