java.lang.Object
com.pervasive.datarush.functions.Actions
Provides implementations of action functions.
These functions can be used to perform an action outside the scope
of the initial function.
- See Also:
-
ScalarValuedFunctionDeriveFields
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarValuedFunctionfail(ScalarValuedFunction expr, String message) Will throw an exception if the expression evaluates to true.static ScalarValuedFunctionWill throw an exception if the field evaluates to true.static ScalarValuedFunction
-
Constructor Details
-
Actions
public Actions()
-
-
Method Details
-
fail
Will throw an exception if the field evaluates to true.- Parameters:
field- the record field value to test- Returns:
- a function that fails if the predicate is true
-
fail
- Parameters:
field- the record field value to testmessage- the exception message to use if failure occurs- Returns:
- a function that fails if the predicate is true
-
fail
Will throw an exception if the expression evaluates to true.- Parameters:
expr- the expression to test for failuremessage- the exception message to use if a failure occurs- Returns:
- a function that fails if the the predicate is true
-