构造函数

ArrowTimestampArraynew

自:0.7.0 起可用

声明 [源码]

GArrowTimestampArray*
garrow_timestamp_array_new (
  GArrowTimestampDataType* data_type,
  gint64 length,
  GArrowBuffer* data,
  GArrowBuffer* null_bitmap,
  gint64 n_nulls
)

描述

暂无描述。

可用自:0.7.0

参数

data_type

类型: GArrowTimestampDataType

GArrowTimestampDataType

数据由函数调用者拥有。
length

类型: gint64

元素数量。

data

类型: GArrowBuffer

数组的 Arrow 格式二进制数据。

数据由函数调用者拥有。
null_bitmap

类型: GArrowBuffer

指示空元素的位图。当第 N 位为 0 时,第 N 个元素为空,否则不为空。如果数组没有空元素,则位图必须为 NULLn_nulls 为 0。

该参数可以为 NULL
数据由函数调用者拥有。
n_nulls

类型: gint64

空元素的数量。如果指定为 -1,则根据 null_bitmap 计算空值的数量。

返回值

类型: GArrowTimestampArray

新创建的 GArrowTimestampArray

函数调用者拥有数据的所有权,并负责释放它。