GArrowChunkedArray

GArrowChunkedArray — Chunked array class

Functions

Properties

gpointer chunked-array Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GArrowChunkedArray

Description

GArrowChunkedArray is a class for chunked array. Chunked array makes a list of GArrowArrays one logical large array.

Functions

garrow_chunked_array_new ()

GArrowChunkedArray *
garrow_chunked_array_new (GList *chunks);

Parameters

chunks

The array chunks.

[element-type GArrowArray]

Returns

A newly created GArrowChunkedArray.


garrow_chunked_array_equal ()

gboolean
garrow_chunked_array_equal (GArrowChunkedArray *chunked_array,
                            GArrowChunkedArray *other_chunked_array);

Parameters

chunked_array

A GArrowChunkedArray.

 

other_chunked_array

A GArrowChunkedArray to be compared.

 

Returns

TRUE if both of them have the same data, FALSE otherwise.

Since 0.4.0


garrow_chunked_array_get_length ()

guint64
garrow_chunked_array_get_length (GArrowChunkedArray *chunked_array);

Parameters

chunked_array

A GArrowChunkedArray.

 

Returns

The total number of rows in the chunked array.


garrow_chunked_array_get_n_nulls ()

guint64
garrow_chunked_array_get_n_nulls (GArrowChunkedArray *chunked_array);

Parameters

chunked_array

A GArrowChunkedArray.

 

Returns

The total number of NULL in the chunked array.


garrow_chunked_array_get_n_chunks ()

guint
garrow_chunked_array_get_n_chunks (GArrowChunkedArray *chunked_array);

Parameters

chunked_array

A GArrowChunkedArray.

 

Returns

The total number of chunks in the chunked array.


garrow_chunked_array_get_chunk ()

GArrowArray *
garrow_chunked_array_get_chunk (GArrowChunkedArray *chunked_array,
                                guint i);

Parameters

chunked_array

A GArrowChunkedArray.

 

i

The index of the target chunk.

 

Returns

The i-th chunk of the chunked array.

[transfer full]


garrow_chunked_array_get_chunks ()

GList *
garrow_chunked_array_get_chunks (GArrowChunkedArray *chunked_array);

Parameters

chunked_array

A GArrowChunkedArray.

 

Returns

The chunks in the chunked array.

[element-type GArrowArray][transfer full]

Types and Values

struct GArrowChunkedArray

struct GArrowChunkedArray;

It wraps arrow::ChunkedArray.

Property Details

The “chunked-array” property

  “chunked-array”            gpointer

The raw std::shared<arrow::ChunkedArray> *.

Flags: Write / Construct Only