DM_addTax

This method adds a taxonomy to a value of type DM_LogicalDataSpec. A taxonomy consists of a name and at least one category map. The first category is specified with this method. A category map consists of a reference to a table and to two columns containing child and parent values. It can optionally contain a name mapping for the parent values, and a type value that specifies whether the category map is recursive or non-recursive. The table is not read when this method is called. Reading the table and checking whether it exists happen during the training run.

Syntax

Method syntax

Read syntax diagramSkip visual syntax diagram
>>-logData..DM_addTax--(--taxName--,--tabName--,--childCol--,--->

>--parentCol--,--nmpName--,--mapType--)------------------------><

Function syntax

Read syntax diagramSkip visual syntax diagram
>>-DM_addTax--(--logData--,--taxName--,--tabName--,--childCol--,-->

>--parentCol--,--nmpName--,--mapType--)------------------------><

Parameters

logData
A value of type DM_LogicalDataSpec
taxName
A value of type VARCHAR(128) that represents the name of a taxonomy
tabName
A value of type VARCHAR(300) that is fully qualified name of the table containing the category map
childCol
A value of type VARCHAR(128) that is the name of the column containing the child values of the category map
parentCol
A value of type VARCHAR(128) that is the name of the column containing the parent values of the category map
nmpName
A value of type VARCHAR(128) that is the name of the name mapping for the parent values. It can also be NULL. If a name mapping is specified, it must already exist in the DM_LogicalDataSpec value.
mapType
A value of type INTEGER that is the type of the category map. Allowed values are 0 (non-recursive) and 1 (recursive). Possible values are: 0 1

Return Value

The return value is of type DM_LogicalDataSpec



Feedback | Information roadmap