The HStore Mask generator runs selected generators on specified key values in an HStore column in a PostgreSQL database. HStore columns contain a set of key-value pairs.
Link object structure
For the HStore Mask generator, there is a link object for each path expression value to assign a generator to.
The generator does not itself support consistency or differential privacy.
The metadata object is populated from the HStoreMaskMetadata object. It includes:
pathExpression, which is the path expression that identifies the value to apply the sub-generator to.
The subGeneratorMetadata object, which identifies and configures the sub-generator.
{"schema":"string","table":"string","column":"string","metadata": {"generatorId":"HStoreMaskGenerator","presetId":"string","customValueProcessor":"string",//If custom value processor assigned to the generator"pathExpression":"string","subGeneratorMetadata": {"generatorId":"string","presetId":"string",//Metadata for the selected sub-generator"customValueProcessor":"string"//If custom value processor assigned to the sub-generator } }}
Example replacement
In the following example replacement for the HStore Mask generator:
The Random Integer generator is assigned to the value of the pages path expression. The generator uses values between 300 and 500.
The Character Scramble generator is assigned to the value of the title path expression. Consistency is disabled.