Class MaskingFunction

All Implemented Interfaces:
AssignmentTestable, Function, ScalarFunction
Direct Known Subclasses:
DefaultMaskingFunction, HashMaskingFunction, NullMaskingFunction, PartialMaskingFunction, ReplaceMaskingFunction

public abstract class MaskingFunction extends NativeScalarFunction
A NativeScalarFunction that totally or partially replaces the original value of a column value, meant to obscure the real value of the column.

The names of all masking functions share a common prefix, NAME_PREFIX, to easily identify their purpose.

  • Field Details

    • NAME_PREFIX

      public static final String NAME_PREFIX
      The common prefix for the names of all the native data masking functions.
      See Also:
  • Constructor Details

    • MaskingFunction

      protected MaskingFunction(FunctionName name, AbstractType<?> outputType, AbstractType<?> inputType, AbstractType<?>... argsType)
      Parameters:
      name - the name of the function
      outputType - the type of the values returned by the function
      inputType - the type of the values accepted by the function, always be the first argument of the function
      argsType - the type of the additional arguments of the function