public class Actions extends Object
ScalarValuedFunction
,
DeriveFields
Constructor and Description |
---|
Actions() |
Modifier and Type | Method and 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) |
public static ScalarValuedFunction fail(String field)
field
- the record field value to testpublic static ScalarValuedFunction fail(String field, String message)
field
- the record field value to testmessage
- the exception message to use if failure occurspublic static ScalarValuedFunction fail(ScalarValuedFunction expr, String message)
expr
- the expression to test for failuremessage
- the exception message to use if a failure occursCopyright © 2019 Actian Corporation. All rights reserved.