The object of the CubeLoaderFromSource class is used to load data. After initializing the object the following actions are required:
Specify the repository object in the Type property, to which a cube or a time series database is loaded.
Depending on the specified type, specify the object, to which the loading is executed, in the Cube or Rubricator property.
Determine parameters of binding of dimensions to data source fields in the DimensionBindings collection.
Determine parameters of binding of facts to data source fields in the FactBindings collection.
Initialize the data source, from which the loading is executed. The source must support IDtProvider.
After calling the Load method data is loaded.
Consider the example of loading data from the existing repository table. The table has the following fields:
COUNTRY_KEY. Country keys (field type - Integer).
V_DATE. Data, to which value corresponds (field type - Date).
VAL. Value (field type - Real).
Loading is executed to the standard cube with the S_CUBE identifier. The cube structure has two dimensions: a countries dimension with the COUNTRY identifier and a calendar dimension.
Loading is executed to the time series database with the TSDB identifier. The COUNTRY attribute that refers to the countries dictionary is created in the database structure.
See also: