Constant (ConstantGenerator)

The Constant generator uses a single value to mask all of the values in the column.

The Constant generator does not support linking or consistency. You cannot configure differential privacy.

The metadata object is populated from the ConstantMetadata object.

The constant field specifies the value to use to populate the column.

{
  "schema": "string",
  "table": "string",
  "column": "estring",
  "dataType": "string" //MongoDB only
  "metadata": {
    "presetId": "string",
    "generatorId": "ConstantGenerator",
    "constant": "string",
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string" //If custom value processor applied
  }
}

Example replacement

In the following example replacement, the education-num column value is replaced by the value 10.

{
  "name": "education-num",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "education-num",
      "metadata": {
        "presetId": "ConstantGenerator",
        "generatorId": "ConstantGenerator",
        "constant": "10"
      }
    }
  ]
}

Last updated