GetFactSegments(Data: IRubricatorFactData): IRubricatorSegmentsSet;
Data. Factor.
The GetFactSegments property returns the number of data ranges including the specified factor.
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: