Class Criteria
java.lang.Object
org.apache.nifi.update.attributes.Criteria
Criteria for updating flow file attributes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified rule to the end of the rule collection.void
deleteRule
(Rule rule) Deletes the specified rule from the rule collection.Gets the flow file policy.Gets the specified rule from the rule collection.Returns the rule ordering.getRules()
Returns a listing of all Rules.void
Reorders the rule collection.void
setFlowFilePolicy
(FlowFilePolicy flowFilePolicy) Sets the flow file policy.
-
Field Details
-
rules
-
flowFilePolicy
-
-
Constructor Details
-
Criteria
public Criteria() -
Criteria
-
-
Method Details
-
addRule
Adds the specified rule to the end of the rule collection.- Parameters:
rule
- the rule to add
-
getRule
Gets the specified rule from the rule collection.- Parameters:
ruleId
- the identifier of the rule to get- Returns:
- the identified rule
-
deleteRule
Deletes the specified rule from the rule collection.- Parameters:
rule
- the rule to delete
-
getRuleOrder
Returns the rule ordering.- Returns:
- the rule keys in rule order
-
reorder
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
Returns a listing of all Rules.- Returns:
- all rules
-
setFlowFilePolicy
Sets the flow file policy.- Parameters:
flowFilePolicy
- the new policy
-
getFlowFilePolicy
Gets the flow file policy.- Returns:
- the current policy
-