建構子
ArrowInt64Arraynew
自:0.4.0 起
宣告 [src]
GArrowInt64Array*
garrow_int64_array_new (
gint64 length,
GArrowBuffer* data,
GArrowBuffer* null_bitmap,
gint64 n_nulls
)
參數
長度
-
型別:
gint64
元素的數量。
資料
-
型別:
GArrowBuffer
Arrow 格式的陣列二進位資料。
資料的所有權屬於函式的呼叫者。 null_bitmap
-
型別:
GArrowBuffer
顯示空值元素的位元地圖。當第 N 個位元為 0 時,第 N 個元素為空值,否則不為空值。如果陣列沒有空值元素,則位元地圖必須為
NULL
且n_nulls
為 0。此參數可以為 NULL
。資料的所有權屬於函式的呼叫者。 n_nulls
-
型別:
gint64
空值元素的數量。如果指定 -1,則會從
null_bitmap
計算空值數量。
回傳值
型別: GArrowInt64Array
新建立的 GArrowInt64Array
。
函式的呼叫者取得資料的所有權,並負責釋放它。 |