Relative

Relative

Generates a target value relative to the size of the source table. Needs a sub-generator to provide a number (generatedDouble). result = (long) Math.floor(correctionFactor * relativeFactor * generatedDouble). If not explicitly specified, every factor has a default value of 1.0. Either 'sourceSize' and 'targetSize' and/or 'correctionFactor' have to be specified.

Attributes
Name Description Required Min Max Allowed Values
targetSize Content type: Long
Sets the size of the target table. targetSize/sourceSizeresults in the relativeFactor.
Default: <not set>
no 0 1
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass no 0 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
sourceSize Content type: Long
Sets the size of the source table. targetSize/sourceSizeresults in the relativeFactor.
Default: <not set>
no 0 1
correctionFactor Content type: Double
Sets a static correction factor. The result is stored in the variable correctionFactor.
Default: 1.0
no 0 1
Nodes
Name Description Required Min Max Allowed Values
gen Value Generator for this field yes 1 1
2.7-83fb0 | 2020-04-22