IRubricator.CollectGarbage

Fore Syntax

CollectGarbage;

Fore.NET Syntax

CollectGarbage();

Description

The CollectGarbage method removes the series, in which the values of identifying attributes were removed from the dictionary.

Fore Example

Executing the example requires that the repository contains a time series database with the OBJ153 identifier. Add links to the Metabase, Cubes system assemblies.

Sub UserProc;
    Var
        mb: IMetabase;
        rub: IRubricator;
    Begin
        mb := MetabaseClass.Active;
        rub := mb.ItemById("OBJ153").Bind As IRubricator;
        rub.CollectGarbage;
End Sub UserProc;

After executing the example the series, in which the values of identifying attributes were removed from the dictionary, will be removed from the time series database with the OBJ153 identifier.

Fore.NET Example

Executing the example requires that the repository contains a time series database with the OBJ153 identifier. Add a link to the Cubes system assembly.

Imports Prognoz.Platform.Interop.Cubes;

...

Public Shared Sub Main(Params: StartParams);
     Var
        mb: IMetabase;
        rub: IRubricator;
    Begin
        mb := Params.Metabase;
        rub := mb.ItemById["OBJ29153"].Bind() As IRubricator;
        rub.CollectGarbage();
End Sub;

The result of the example execution matches with that in the Fore example.

See also:

IRubricator