IRubricatorSegmentsSet.GetFactSegments

Syntax

GetFactSegments(Data: IRubricatorFactData): IRubricatorSegmentsSet;

Parameters

Data. Factor.

Description

The GetFactSegments property returns the number of data ranges including the specified factor.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier that contains determined segments, and a factor with the 89817 key.

Sub Main;

Var

mb: IMetabase;

rubInst: IRubricatorInstance;

Rub: IRubricator;

Segs: IRubricatorSegments;

Factor: IRubricatorFactData;

Begin

mb := MetabaseClass.Active;

Rub := mb.ItemById("OBJ_RUBRICATOR").Bind As IRubricator;

rubInst := (Rub As IMetabaseObjectDescriptor).Open(Null) As IRubricatorInstance;

Segs := rubInst.Segments;

Factor := rubInst.GetFactData(89817);

Debug.WriteLine(Segs.GetFactSegments(Factor).Count);

End Sub Main;

After executing the example the console window displays the number of segments that contain the factor with the 89817 key.

See also:

IRubricatorSegmentsSet