Class Criteria

java.lang.Object
org.apache.nifi.update.attributes.Criteria

public class Criteria extends Object
Criteria for updating flow file attributes
  • Field Details

  • Constructor Details

  • Method Details

    • addRule

      public void addRule(Rule rule)
      Adds the specified rule to the end of the rule collection.
      Parameters:
      rule - the rule to add
    • getRule

      public Rule getRule(String ruleId)
      Gets the specified rule from the rule collection.
      Parameters:
      ruleId - the identifier of the rule to get
      Returns:
      the identified rule
    • deleteRule

      public void deleteRule(Rule rule)
      Deletes the specified rule from the rule collection.
      Parameters:
      rule - the rule to delete
    • getRuleOrder

      public List<String> getRuleOrder()
      Returns the rule ordering.
      Returns:
      the rule keys in rule order
    • reorder

      public void reorder(List<String> newRuleOrder)
      Reorders the rule collection. The specified new rule order must contain the rule id for each rule in the collection.
      Parameters:
      newRuleOrder - the new rule order to use by key
    • getRules

      public List<Rule> getRules()
      Returns a listing of all Rules.
      Returns:
      all rules
    • setFlowFilePolicy

      public void setFlowFilePolicy(FlowFilePolicy flowFilePolicy)
      Sets the flow file policy.
      Parameters:
      flowFilePolicy - the new policy
    • getFlowFilePolicy

      public FlowFilePolicy getFlowFilePolicy()
      Gets the flow file policy.
      Returns:
      the current policy