Numeric String Key (NumericStringPkGenerator)

The Numeric String Key generator generates unique numeric strings of the same length as the input value.

The Numeric String Key generator does not support linking. It can be self-consistent, but not consistent with another column. You cannot configure differential privacy.

The metadata object is populated from the BaseMetadata object.

There is no generator-specific configuration.

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

Example replacement

In the following example replacement for the Numeric String Key generator, consistency is disabled.

{
  "name": "userid",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "userid",
      "metadata": {
        "presetId": "NumericStringPkGenerator",
        "generatorId": "NumericStringPkGenerator",
        "isConsistent": false
      }
    }
  ]
}

Last updated