HierarchyElementComponentDeleteDirect
HierarchyElementComponentDeleteDirect deletes a component (child) from a consolidated element by directly editing the dimension.
This function is valid in TM1® TurboIntegrator processes only.
The default method of editing a dimension in TM1 is to use a whole-copy editing pattern. In that pattern, an editing copy of the dimension is created, edits are applied to the editing copy, then finally the actual dimension is rewritten using the editing copy as a template. TurboIntegrator supports whole-copy editing automatically whenever dimension editing TurboIntegrator functions (like HierarchyElementComponentDelete) are used in the Metadata procedure of the process. TurboIntegrator automatically creates the editing copy and applies editing operations to it, then rewrites the actual dimension at the end of the Metadata procedure.
Direct edits are different in that no editing copy is involved. Instead, the operations are performed directly on the actual dimension. There are two different, specialized use cases for which this type of direct editing is intended:
- When the purpose of the TurboIntegrator process is to make a small change to a large dimension. In this case, direct editing will be more efficient because it avoids copying and completely rewriting the large dimension.
- When the purpose of the TurboIntegrator process is to load large volumes of data into a cube. In this case the process' Metadata procedure is deliberately kept empty, and any element modification needed to support data loading is performed using direct calls in the Data procedure. When the Metadata procedure is empty, the process skips an entire iteration over the external datasource, which can result in faster data loads.
Syntax
HierarchyElementComponentDeleteDirect(DimName, HierName, ConsolidatedElName, ElName);
Argument |
Description |
---|---|
DimName |
The parent dimension of the consolidated element from which you want to delete a child. |
HierName |
The name of the hierarchy within the dimension. |
ConsolidatedElName |
The consolidated element from which you want to delete a child. |
ElName |
The name of the child element you want to delete. |
Example
HierarchyElementComponentDeleteDirect('Region', 'Western', 'Benelux', 'Belgium');
This example deletes the Belgium child from the Benelux consolidation in the Western hierarchy of the Region dimension.