- java.lang.Object
-
- com.pervasive.datarush.functions.Actions
-
public class Actions extends Object
Provides implementations of action functions. These functions can be used to perform an action outside the scope of the initial function.- See Also:
ScalarValuedFunction
,DeriveFields
-
-
Constructor Summary
Constructors Constructor Description Actions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScalarValuedFunction
fail(ScalarValuedFunction expr, String message)
Will throw an exception if the expression evaluates to true.static ScalarValuedFunction
fail(String field)
Will throw an exception if the field evaluates to true.static ScalarValuedFunction
fail(String field, String message)
-
-
-
Method Detail
-
fail
public static ScalarValuedFunction fail(String field)
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
public static ScalarValuedFunction fail(String field, String message)
- 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
public static ScalarValuedFunction fail(ScalarValuedFunction expr, String message)
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
-
-