GArrowTable

GArrowTable — Table class

Functions

Properties

gpointer table Write / Construct Only

Types and Values

struct GArrowTable

Object Hierarchy

    GObject
    ╰── GArrowTable

Description

GArrowTable is a class for table. Table has zero or more GArrowColumns and zero or more records.

Functions

garrow_table_new ()

GArrowTable *
garrow_table_new (const gchar *name,
                  GArrowSchema *schema,
                  GList *columns);

Parameters

name

The name of the table.

 

schema

The schema of the table.

 

columns

The columns of the table.

[element-type GArrowColumn]

Returns

A newly created GArrowTable.


garrow_table_get_name ()

const gchar *
garrow_table_get_name (GArrowTable *table);

Parameters

table

A GArrowTable.

 

Returns

The name of the table.


garrow_table_get_schema ()

GArrowSchema *
garrow_table_get_schema (GArrowTable *table);

Parameters

table

A GArrowTable.

 

Returns

The schema of the table.

[transfer full]


garrow_table_get_column ()

GArrowColumn *
garrow_table_get_column (GArrowTable *table,
                         guint i);

Parameters

table

A GArrowTable.

 

i

The index of the target column.

 

Returns

The i-th column in the table.

[transfer full]


garrow_table_get_n_columns ()

guint
garrow_table_get_n_columns (GArrowTable *table);

Parameters

table

A GArrowTable.

 

Returns

The number of columns in the table.


garrow_table_get_n_rows ()

guint64
garrow_table_get_n_rows (GArrowTable *table);

Parameters

table

A GArrowTable.

 

Returns

The number of rows in the table.

Types and Values

struct GArrowTable

struct GArrowTable;

It wraps arrow::Table.

Property Details

The “table” property

  “table”                    gpointer

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

Flags: Write / Construct Only