Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method

Usage

get_region_name

Returns region_name of the region_obj.

TM1ReverseDirective (class in TM1ReverseDirective.py, extends TM1Directive)

The class represents a directive for reverse splicing. The reverse directive is derived from directive by using the same logic to match elements for splicing as the original directive, but uses element list obtained from QueryRollback for splicing.

The class defines following attributes:

Attribute

Type

Usage

original_directives

Dict[str, str]

Dictionary of associated regular expressions that define splicing set of the splicing directive indexed by dimension.

The class exposes following methods:

Method

Usage

get_original_directives

Returns original_directives.

get_dimensions

Returns dimensions of directives if they are defined or original_directives.

get_regexp

Returns a regular expression associated with the directive if it was defined or empty string.

get_elements

Returns a regular expression assigned to the dimension directive or all dimension’s elements associated with the directive if all elements of a dimension are to be spliced (@mdx tag)

get_original_directives_for_dimension

Returns original_directives for specified dimension.

get_mdx_applies

Returns a flag if all of elements related to specified dimension should be spliced. This applies when a special tag @mdx was supplied instead of element regular expression to the directive in original_directives.

applies

Returns a flag if the directive applies to supplied dimension and element list.