IEtlPlainIndex.FieldCount

Syntax

FieldCount: Integer;

Description

The FieldCount property returns the number of index fields.

Comments

Index field is a column of records containing data source fields identifiers, by which indexing is executed. Each index field can contain an identifier of one data source field.

Example

Sub Main;

Var

MB: IMetabase;

EtlTask: IEtlTask;

Join: IEtlPlainDataJoin;

Index: IEtlPlainIndex;

i: Integer;

Begin

MB:=MetabaseClass.Active;

EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;

Join:=EtlTask.Item(0) As IEtlPlainDataJoin;

Index:=Join.Index;

i:=Index.FieldCount;

End Sub Main;

After executing the example the "i" variable contains the number of index fields. The type of ETL task object is Join. The repository object has the ETL identifier.

See also:

IEtlPlainIndex