Class DefaultMaskingFunction

All Implemented Interfaces:
AssignmentTestable, Function, ScalarFunction

public class DefaultMaskingFunction extends MaskingFunction
A MaskingFunction that returns a fixed replacement value for the data type of its single argument.

The default values are defined by AbstractType.getMaskedValue(), being **** for text fields, false for booleans, zero for numeric types, 1970-01-01 for dates, etc.

For example, given a text column named "username", mask_default(username) will always return ****, independently of the actual value of that column.