构造函数
ArrowDenseUnionArraynew_data_type
自:0.14.0 起可用
声明 [源码]
GArrowDenseUnionArray*
garrow_dense_union_array_new_data_type (
GArrowDenseUnionDataType* data_type,
GArrowInt8Array* type_ids,
GArrowInt32Array* value_offsets,
GList* fields,
GError** error
)
参数
data_type
-
密集数组的数据类型。
数据由函数调用者拥有。 type_ids
-
类型:
GArrowInt8Array
每个值的字段类型 ID,以
GArrowInt8Array
形式表示。数据由函数调用者拥有。 value_offsets
-
类型:
GArrowInt32Array
每个值的偏移量,以
GArrowInt32Array
形式表示。每个偏移量针对每种类型进行计数。数据由函数调用者拥有。 fields
-
类型:
GArrowArray*
列表每个字段的数组,以
GList
形式表示的GArrowArray
列表。数据由函数调用者拥有。 error
-
类型:
GError **
用于返回可恢复错误的位置。
参数可以为 NULL
。如果返回位置不为 NULL
,则必须将其初始化为NULL
GError*
。如果没有错误,构造函数会将参数初始化为 NULL
。如果发生错误,该参数将设置为新分配的 GError
;调用者将拥有该数据的所有权,并负责释放它。