Constructor

ArrowSparseUnionArraynew_data_type

Declaration [src]

GArrowSparseUnionArray*
garrow_sparse_union_array_new_data_type (
  GArrowSparseUnionDataType* data_type,
  GArrowInt8Array* type_ids,
  GList* fields,
  GError** error
)

Description

No description available.
Available since:0.14.0

Parameters

data_type GArrowSparseUnionDataType
 

The data type for the sparse array.

 The data is owned by the caller of the function.
type_ids GArrowInt8Array
 

The field type IDs for each value as GArrowInt8Array.

 The data is owned by the caller of the function.
fields A list of GArrowArray*
 

The arrays for each field as GList of GArrowArray.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GArrowSparseUnionArray
 

A newly created GArrowSparseUnionArray or NULL on error.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.