Basic data type classes

Basic data type classes

Functions

Properties

gpointer data-type Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ├── GArrowDataType
       ├── GArrowBinaryDataType
       ├── GArrowBooleanDataType
       ├── GArrowDate32DataType
       ├── GArrowDate64DataType
       ├── GArrowDoubleDataType
       ├── GArrowFloatDataType
       ├── GArrowInt16DataType
       ├── GArrowInt32DataType
       ├── GArrowInt64DataType
       ├── GArrowInt8DataType
       ├── GArrowNullDataType
       ├── GArrowStringDataType
       ├── GArrowTimeDataType
          ├── GArrowTime32DataType
          ╰── GArrowTime64DataType
       ├── GArrowTimestampDataType
       ├── GArrowUInt16DataType
       ├── GArrowUInt32DataType
       ├── GArrowUInt64DataType
       ╰── GArrowUInt8DataType
    ╰── GArrowDataType
        ├── GArrowBinaryDataType
        ├── GArrowBooleanDataType
        ├── GArrowDate32DataType
        ├── GArrowDate64DataType
        ├── GArrowDoubleDataType
        ├── GArrowFloatDataType
        ├── GArrowInt16DataType
        ├── GArrowInt32DataType
        ├── GArrowInt64DataType
        ├── GArrowInt8DataType
        ├── GArrowListDataType
        ├── GArrowNullDataType
        ├── GArrowStringDataType
        ├── GArrowStructDataType
        ├── GArrowTimeDataType
           ├── GArrowTime32DataType
           ╰── GArrowTime64DataType
        ├── GArrowTimestampDataType
        ├── GArrowUInt16DataType
        ├── GArrowUInt32DataType
        ├── GArrowUInt64DataType
        ╰── GArrowUInt8DataType

Includes

#include <arrow-glib/arrow-glib.h>

Description

GArrowDataType is a base class for all data type classes such as GArrowBooleanDataType.

GArrowNullDataType is a class for null data type.

GArrowBooleanDataType is a class for boolean data type.

GArrowInt8DataType is a class for 8-bit integer data type.

GArrowUInt8DataType is a class for 8-bit unsigned integer data type.

GArrowInt16DataType is a class for 16-bit integer data type.

GArrowUInt16DataType is a class for 16-bit unsigned integer data type.

GArrowInt32DataType is a class for 32-bit integer data type.

GArrowUInt32DataType is a class for 32-bit unsigned integer data type.

GArrowInt64DataType is a class for 64-bit integer data type.

GArrowUInt64DataType is a class for 64-bit unsigned integer data type.

GArrowFloatDataType is a class for 32-bit floating point data type.

GArrowDoubleDataType is a class for 64-bit floating point data type.

GArrowBinaryDataType is a class for binary data type.

GArrowStringDataType is a class for UTF-8 encoded string data type.

GArrowDate32DataType is a class for the number of days since UNIX epoch in 32-bit signed integer data type.

GArrowDate64DataType is a class for the number of milliseconds since UNIX epoch in 64-bit signed integer data type.

GArrowTimestampDataType is a class for the number of seconds/milliseconds/microseconds/nanoseconds since UNIX epoch in 64-bit signed integer data type.

GArrowTime32DataType is a class for the number of seconds or milliseconds since midnight in 32-bit signed integer data type.

GArrowTime64DataType is a class for the number of microseconds or nanoseconds since midnight in 64-bit signed integer data type.

Functions

garrow_data_type_equal ()

gboolean
garrow_data_type_equal (GArrowDataType *data_type,
                        GArrowDataType *other_data_type);

Parameters

data_type

A GArrowDataType.

 

other_data_type

A GArrowDataType to be compared.

 

Returns

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


garrow_data_type_to_string ()

gchar *
garrow_data_type_to_string (GArrowDataType *data_type);

Parameters

data_type

A GArrowDataType.

 

Returns

The string representation of the data type. The caller must free it by g_free() when the caller doesn't need it anymore.


garrow_data_type_get_id ()

GArrowType
garrow_data_type_get_id (GArrowDataType *data_type);

Parameters

data_type

A GArrowDataType.

 

Returns

The GArrowType of the data type.


garrow_null_data_type_new ()

GArrowNullDataType *
garrow_null_data_type_new (void);

Returns

The newly created null data type.


garrow_boolean_data_type_new ()

GArrowBooleanDataType *
garrow_boolean_data_type_new (void);

Returns

The newly created boolean data type.


garrow_int8_data_type_new ()

GArrowInt8DataType *
garrow_int8_data_type_new (void);

Returns

The newly created 8-bit integer data type.


garrow_uint8_data_type_new ()

GArrowUInt8DataType *
garrow_uint8_data_type_new (void);

Returns

The newly created 8-bit unsigned integer data type.


garrow_int16_data_type_new ()

GArrowInt16DataType *
garrow_int16_data_type_new (void);

Returns

The newly created 16-bit integer data type.


garrow_uint16_data_type_new ()

GArrowUInt16DataType *
garrow_uint16_data_type_new (void);

Returns

The newly created 16-bit unsigned integer data type.


garrow_int32_data_type_new ()

GArrowInt32DataType *
garrow_int32_data_type_new (void);

Returns

The newly created 32-bit integer data type.


garrow_uint32_data_type_new ()

GArrowUInt32DataType *
garrow_uint32_data_type_new (void);

Returns

The newly created 32-bit unsigned integer data type.


garrow_int64_data_type_new ()

GArrowInt64DataType *
garrow_int64_data_type_new (void);

Returns

The newly created 64-bit integer data type.


garrow_uint64_data_type_new ()

GArrowUInt64DataType *
garrow_uint64_data_type_new (void);

Returns

The newly created 64-bit unsigned integer data type.


garrow_float_data_type_new ()

GArrowFloatDataType *
garrow_float_data_type_new (void);

Returns

The newly created float data type.


garrow_double_data_type_new ()

GArrowDoubleDataType *
garrow_double_data_type_new (void);

Returns

The newly created 64-bit floating point data type.


garrow_binary_data_type_new ()

GArrowBinaryDataType *
garrow_binary_data_type_new (void);

Returns

The newly created binary data type.


garrow_string_data_type_new ()

GArrowStringDataType *
garrow_string_data_type_new (void);

Returns

The newly created UTF-8 encoded string data type.


garrow_date32_data_type_new ()

GArrowDate32DataType *
garrow_date32_data_type_new (void);

Returns

A newly created the number of milliseconds since UNIX epoch in 32-bit signed integer data type.

Since 0.7.0


garrow_date64_data_type_new ()

GArrowDate64DataType *
garrow_date64_data_type_new (void);

Returns

A newly created the number of milliseconds since UNIX epoch in 64-bit signed integer data type.

Since 0.7.0


garrow_timestamp_data_type_new ()

GArrowTimestampDataType *
garrow_timestamp_data_type_new (GArrowTimeUnit unit);

Parameters

unit

The unit of the timestamp data.

 

Returns

A newly created the number of seconds/milliseconds/microseconds/nanoseconds since UNIX epoch in 64-bit signed integer data type.

Since 0.7.0


garrow_time_data_type_get_unit ()

GArrowTimeUnit
garrow_time_data_type_get_unit (GArrowTimeDataType *time_data_type);

Parameters

time_data_type

The GArrowTimeDataType.

 

Returns

The unit of the time data type.

Since 0.7.0


garrow_time32_data_type_new ()

GArrowTime32DataType *
garrow_time32_data_type_new (GArrowTimeUnit unit,
                             GError **error);

Parameters

unit

GARROW_TIME_UNIT_SECOND or GARROW_TIME_UNIT_MILLI.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created the number of seconds or milliseconds since midnight in 32-bit signed integer data type.

[nullable]

Since 0.7.0


garrow_time64_data_type_new ()

GArrowTime64DataType *
garrow_time64_data_type_new (GArrowTimeUnit unit,
                             GError **error);

Parameters

unit

GARROW_TIME_UNIT_SECOND or GARROW_TIME_UNIT_MILLI.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created the number of seconds or milliseconds since midnight in 64-bit signed integer data type.

[nullable]

Since 0.7.0

Types and Values

struct GArrowDataType

struct GArrowDataType;

It wraps arrow::DataType.


struct GArrowNullDataType

struct GArrowNullDataType;

It wraps arrow::NullType.


struct GArrowNullDataTypeClass

struct GArrowNullDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowBooleanDataType

struct GArrowBooleanDataType;

It wraps arrow::BooleanType.


struct GArrowBooleanDataTypeClass

struct GArrowBooleanDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowInt8DataType

struct GArrowInt8DataType;

It wraps arrow::Int8Type.


struct GArrowInt8DataTypeClass

struct GArrowInt8DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowUInt8DataType

struct GArrowUInt8DataType;

It wraps arrow::UInt8Type.


struct GArrowUInt8DataTypeClass

struct GArrowUInt8DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowInt16DataType

struct GArrowInt16DataType;

It wraps arrow::Int16Type.


struct GArrowInt16DataTypeClass

struct GArrowInt16DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowUInt16DataType

struct GArrowUInt16DataType;

It wraps arrow::UInt16Type.


struct GArrowUInt16DataTypeClass

struct GArrowUInt16DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowInt32DataType

struct GArrowInt32DataType;

It wraps arrow::Int32Type.


struct GArrowInt32DataTypeClass

struct GArrowInt32DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowUInt32DataType

struct GArrowUInt32DataType;

It wraps arrow::UInt32Type.


struct GArrowUInt32DataTypeClass

struct GArrowUInt32DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowInt64DataType

struct GArrowInt64DataType;

It wraps arrow::Int64Type.


struct GArrowInt64DataTypeClass

struct GArrowInt64DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowUInt64DataType

struct GArrowUInt64DataType;

It wraps arrow::UInt64Type.


struct GArrowUInt64DataTypeClass

struct GArrowUInt64DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowFloatDataType

struct GArrowFloatDataType;

It wraps arrow::FloatType.


struct GArrowFloatDataTypeClass

struct GArrowFloatDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowDoubleDataType

struct GArrowDoubleDataType;

It wraps arrow::DoubleType.


struct GArrowDoubleDataTypeClass

struct GArrowDoubleDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowBinaryDataType

struct GArrowBinaryDataType;

It wraps arrow::BinaryType.


struct GArrowBinaryDataTypeClass

struct GArrowBinaryDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowStringDataType

struct GArrowStringDataType;

It wraps arrow::StringType.


struct GArrowStringDataTypeClass

struct GArrowStringDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowDate32DataType

struct GArrowDate32DataType;

It wraps arrow::Date32Type.


struct GArrowDate32DataTypeClass

struct GArrowDate32DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowDate64DataType

struct GArrowDate64DataType;

It wraps arrow::Date64Type.


struct GArrowDate64DataTypeClass

struct GArrowDate64DataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowTimestampDataType

struct GArrowTimestampDataType;

It wraps arrow::TimestampType.


struct GArrowTimestampDataTypeClass

struct GArrowTimestampDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowTimeDataType

struct GArrowTimeDataType;

It wraps arrow::TimeType.


struct GArrowTimeDataTypeClass

struct GArrowTimeDataTypeClass {
  GArrowDataTypeClass parent_class;
};


struct GArrowTime32DataType

struct GArrowTime32DataType;

It wraps arrow::Time32Type.


struct GArrowTime32DataTypeClass

struct GArrowTime32DataTypeClass {
  GArrowTimeDataTypeClass parent_class;
};


struct GArrowTime64DataType

struct GArrowTime64DataType;

It wraps arrow::Time64Type.


struct GArrowTime64DataTypeClass

struct GArrowTime64DataTypeClass {
  GArrowTimeDataTypeClass parent_class;
};

Property Details

The “data-type” property

  “data-type”                gpointer

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

Flags: Write / Construct Only