Class Actions

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:
  • Constructor Details

    • Actions

      public Actions()
  • Method Details

    • 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 test
      message - 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 failure
      message - the exception message to use if a failure occurs
      Returns:
      a function that fails if the the predicate is true