Assign the field values

To provide values for the columns (or fields) of a row structure, you pass information for the columns in column-value arrays or column-value null arrays.

These column-value arrays are similar to the column arrays in the row descriptor (see Figure 1). They have an element for each column in the row descriptor. The column-value arrays are different from the column arrays in the row descriptor, in the following ways:
  • The column-value arrays describe the value for a column.

    Column arrays describe the column data type.

  • You must allocate and manage the column-value arrays.

    The DataBlade API does not provide accessor functions for these column-value arrays. For each column, your DataBlade API module must declare, allocate, and assign values to these arrays.

All of the column-value arrays have zero-based indexes. The following figure shows how the information at index position 1 of these arrays holds the column-value information for the second column of a row.
Figure 1. Arrays for initialization of column
begin figure description - This figure is described in the surrounding text. - end figure description

The following sections provide additional information about each of the column-value arrays.


Copyright© 2019 HCL Technologies Limited