Top |
GArrowBuffer * | value | Write / Construct Only |
GArrowArray * | value | Write / Construct Only |
GArrowDecimal128 * | value | Write / Construct Only |
GArrowDecimal256 * | value | Write / Construct Only |
GArrowDataType * | data-type | Write / Construct Only |
gpointer | scalar | Write / Construct Only |
GArrowScalar * | value | Write / Construct Only |
GObject ╰── GArrowScalar ├── GArrowBaseBinaryScalar ├── GArrowBaseListScalar ├── GArrowBooleanScalar ├── GArrowDate32Scalar ├── GArrowDate64Scalar ├── GArrowDayTimeIntervalScalar ├── GArrowDecimal128Scalar ├── GArrowDecimal256Scalar ├── GArrowUnionScalar │ ├── GArrowDenseUnionScalar │ ├── GArrowSparseUnionScalar │ ╰── GArrowSparseUnionScalar ├── GArrowDoubleScalar ├── GArrowExtensionScalar ├── GArrowFloatScalar ├── GArrowHalfFloatScalar ├── GArrowInt16Scalar ├── GArrowInt32Scalar ├── GArrowInt64Scalar ├── GArrowInt8Scalar ├── GArrowMonthDayNanoIntervalScalar ├── GArrowMonthIntervalScalar ├── GArrowNullScalar ├── GArrowStructScalar ├── GArrowTime32Scalar ├── GArrowTime64Scalar ├── GArrowTimestampScalar ├── GArrowUInt16Scalar ├── GArrowUInt32Scalar ├── GArrowUInt64Scalar ├── GArrowUInt8Scalar ├── GArrowDoubleScalar ├── GArrowExtensionScalar ├── GArrowFloatScalar ├── GArrowHalfFloatScalar ├── GArrowInt16Scalar ├── GArrowInt32Scalar ├── GArrowInt64Scalar ├── GArrowInt8Scalar ├── GArrowMonthDayNanoIntervalScalar ├── GArrowMonthIntervalScalar ├── GArrowNullScalar ├── GArrowUnionScalar │ ╰── GArrowDenseUnionScalar ├── GArrowBaseBinaryScalar │ ├── GArrowBinaryScalar │ ├── GArrowFixedSizeBinaryScalar │ ├── GArrowLargeBinaryScalar │ ├── GArrowLargeStringScalar │ ╰── GArrowStringScalar ├── GArrowBaseListScalar │ ├── GArrowLargeListScalar │ ├── GArrowListScalar │ ╰── GArrowMapScalar ├── GArrowBooleanScalar ├── GArrowDate32Scalar ├── GArrowDate64Scalar ├── GArrowDayTimeIntervalScalar ├── GArrowDecimal128Scalar ╰── GArrowDecimal256Scalar
GArrowScalar is a base class for all scalar classes such as GArrowBooleanScalar.
GArrowNullScalar is a class for a null scalar.
GArrowBooleanScalar is a class for a boolean scalar.
GArrowInt8Scalar is a class for a 8-bit integer scalar.
GArrowInt16Scalar is a class for a 16-bit integer scalar.
GArrowInt32Scalar is a class for a 32-bit integer scalar.
GArrowInt64Scalar is a class for a 64-bit integer scalar.
GArrowUInt8Scalar is a class for a 8-bit unsigned integer scalar.
GArrowUInt16Scalar is a class for a 16-bit unsigned integer scalar.
GArrowUInt32Scalar is a class for a 32-bit unsigned integer scalar.
GArrowUInt64Scalar is a class for a 64-bit unsigned integer scalar.
GArrowHalfFloatScalar is a class for a 16-bit floating point scalar.
GArrowFloatScalar is a class for a 32-bit floating point scalar.
GArrowDoubleScalar is a class for a 64-bit floating point scalar.
GArrowBaseBinaryScalar is a base class for all binary and string scalar classes such as GArrowBinaryScalar.
GArrowBinaryScalar is a class for a binary scalar.
GArrowStringScalar is a class for an UTF-8 encoded string scalar.
GArrowLargeBinaryScalar is a class for a 64-bit offsets binary scalar.
GArrowLargeStringScalar is a class for a 64-bit offsets UTF-8 encoded string scalar.
GArrowFixedSizeBinaryScalar is a class for a fixed-size binary scalar.
GArrowDate32Scalar is a class for the number of days since UNIX epoch in a 32-bit signed integer scalar.
GArrowDate64Scalar is a class for the number of milliseconds since UNIX epoch in a 64-bit signed integer scalar.
GArrowTime32Scalar is a class for the number of seconds or milliseconds since midnight in a 32-bit signed integer scalar.
GArrowTime64Scalar is a class for the number of microseconds or nanoseconds since midnight in a 64-bit signed integer scalar.
GArrowTimestampScalar is a class for the number of seconds/milliseconds/microseconds/nanoseconds since UNIX epoch in a 64-bit signed integer scalar.
GArrowMonthIntervalScalar is a class for the month intarval scalar.
GArrowDayTimeIntervalScalar is a class for the day time intarval scalar.
GArrowMonthDayNanoIntervalScalar is a class for the month day nano intarval scalar.
GArrowDecimal128Scalar is a class for a 128-bit decimal scalar.
GArrowDecimal256Scalar is a class for a 256-bit decimal scalar.
GArrowBaseListScalar is a base class for all list scalar classes such as GArrowListScalar.
GArrowListScalar is a class for a list scalar.
GArrowLargeListScalar is a class for a large list scalar.
GArrowMapScalar is a class for a map list scalar.
GArrowStructScalar is a class for a struct list scalar.
GArrowUnionScalar is a base class for all union scalar classes such as GArrowSparseUnionScalar.
GArrowSparseUnionScalar is a class for a sparse union scalar.
GArrowDenseUnionScalar is a class for a dense union scalar.
GArrowExtensionScalar is a base class for user-defined extension scalar.
GArrowScalar * garrow_scalar_parse (GArrowDataType *data_type
,const guint8 *data
,gsize size
,GError **error
);
data_type |
A GArrowDataType for the parsed scalar. |
|
data |
Data to be parsed. |
[array length=size] |
size |
The number of bytes of the data. |
|
error |
[nullable] |
A newly created GArrowScalar if the data is parsed successfully,
NULL
otherwise.
[nullable][transfer full]
Since: 5.0.0
GArrowDataType *
garrow_scalar_get_data_type (GArrowScalar *scalar
);
Since: 5.0.0
gboolean garrow_scalar_equal (GArrowScalar *scalar
,GArrowScalar *other_scalar
);
Since: 5.0.0
gboolean garrow_scalar_equal_options (GArrowScalar *scalar
,GArrowScalar *other_scalar
,GArrowEqualOptions *options
);
Since: 5.0.0
gchar *
garrow_scalar_to_string (GArrowScalar *scalar
);
The string representation of the scalar.
It should be freed with g_free()
when no longer needed.
Since: 5.0.0
GArrowScalar * garrow_scalar_cast (GArrowScalar *scalar
,GArrowDataType *data_type
,GArrowCastOptions *options
,GError **error
);
scalar |
A GArrowScalar. |
|
data_type |
A GArrowDataType of the casted scalar. |
|
options |
A GArrowCastOptions. |
[nullable] |
error |
[nullable] |
Since: 5.0.0
GArrowBooleanScalar *
garrow_boolean_scalar_new (gboolean value
);
Since: 5.0.0
gboolean
garrow_boolean_scalar_get_value (GArrowBooleanScalar *scalar
);
Since: 5.0.0
gint8
garrow_int8_scalar_get_value (GArrowInt8Scalar *scalar
);
Since: 5.0.0
gint16
garrow_int16_scalar_get_value (GArrowInt16Scalar *scalar
);
Since: 5.0.0
gint32
garrow_int32_scalar_get_value (GArrowInt32Scalar *scalar
);
Since: 5.0.0
gint64
garrow_int64_scalar_get_value (GArrowInt64Scalar *scalar
);
Since: 5.0.0
guint8
garrow_uint8_scalar_get_value (GArrowUInt8Scalar *scalar
);
Since: 5.0.0
GArrowUInt16Scalar *
garrow_uint16_scalar_new (guint16 value
);
Since: 5.0.0
guint16
garrow_uint16_scalar_get_value (GArrowUInt16Scalar *scalar
);
Since: 5.0.0
GArrowUInt32Scalar *
garrow_uint32_scalar_new (guint32 value
);
Since: 5.0.0
guint32
garrow_uint32_scalar_get_value (GArrowUInt32Scalar *scalar
);
Since: 5.0.0
GArrowUInt64Scalar *
garrow_uint64_scalar_new (guint64 value
);
Since: 5.0.0
guint64
garrow_uint64_scalar_get_value (GArrowUInt64Scalar *scalar
);
Since: 5.0.0
GArrowHalfFloatScalar *
garrow_half_float_scalar_new (guint16 value
);
Since: 11.0.0
guint16
garrow_half_float_scalar_get_value (GArrowHalfFloatScalar *scalar
);
Since: 11.0.0
gfloat
garrow_float_scalar_get_value (GArrowFloatScalar *scalar
);
Since: 5.0.0
GArrowDoubleScalar *
garrow_double_scalar_new (gdouble value
);
Since: 5.0.0
gdouble
garrow_double_scalar_get_value (GArrowDoubleScalar *scalar
);
Since: 5.0.0
GArrowBuffer *
garrow_base_binary_scalar_get_value (GArrowBaseBinaryScalar *scalar
);
Since: 5.0.0
GArrowBinaryScalar *
garrow_binary_scalar_new (GArrowBuffer *value
);
Since: 5.0.0
GArrowStringScalar *
garrow_string_scalar_new (GArrowBuffer *value
);
Since: 5.0.0
GArrowLargeBinaryScalar *
garrow_large_binary_scalar_new (GArrowBuffer *value
);
Since: 5.0.0
GArrowLargeStringScalar *
garrow_large_string_scalar_new (GArrowBuffer *value
);
Since: 5.0.0
GArrowFixedSizeBinaryScalar * garrow_fixed_size_binary_scalar_new (GArrowFixedSizeBinaryDataType *data_type
,GArrowBuffer *value
);
data_type |
A GArrowFixedSizeBinaryDataType for this scalar. |
|
value |
The value of this scalar. |
Since: 5.0.0
GArrowDate32Scalar *
garrow_date32_scalar_new (gint32 value
);
Since: 5.0.0
gint32
garrow_date32_scalar_get_value (GArrowDate32Scalar *scalar
);
Since: 5.0.0
GArrowDate64Scalar *
garrow_date64_scalar_new (gint64 value
);
Since: 5.0.0
gint64
garrow_date64_scalar_get_value (GArrowDate64Scalar *scalar
);
Since: 5.0.0
GArrowTime32Scalar * garrow_time32_scalar_new (GArrowTime32DataType *data_type
,gint32 value
);
Since: 5.0.0
gint32
garrow_time32_scalar_get_value (GArrowTime32Scalar *scalar
);
Since: 5.0.0
GArrowTime64Scalar * garrow_time64_scalar_new (GArrowTime64DataType *data_type
,gint64 value
);
Since: 5.0.0
gint64
garrow_time64_scalar_get_value (GArrowTime64Scalar *scalar
);
Since: 5.0.0
GArrowTimestampScalar * garrow_timestamp_scalar_new (GArrowTimestampDataType *data_type
,gint64 value
);
Since: 5.0.0
gint64
garrow_timestamp_scalar_get_value (GArrowTimestampScalar *scalar
);
Since: 5.0.0
GArrowMonthIntervalScalar *
garrow_month_interval_scalar_new (gint32 value
);
Since: 8.0.0
gint32
garrow_month_interval_scalar_get_value
(GArrowMonthIntervalScalar *scalar
);
Since: 8.0.0
GArrowDayTimeIntervalScalar *
garrow_day_time_interval_scalar_new (GArrowDayMillisecond *value
);
Since: 8.0.0
GArrowDayMillisecond *
garrow_day_time_interval_scalar_get_value
(GArrowDayTimeIntervalScalar *scalar
);
Since: 8.0.0
GArrowMonthDayNanoIntervalScalar *
garrow_month_day_nano_interval_scalar_new
(GArrowMonthDayNano *value
);
Since: 8.0.0
GArrowMonthDayNano *
garrow_month_day_nano_interval_scalar_get_value
(GArrowMonthDayNanoIntervalScalar *scalar
);
Since: 8.0.0
GArrowDecimal128Scalar * garrow_decimal128_scalar_new (GArrowDecimal128DataType *data_type
,GArrowDecimal128 *value
);
Since: 5.0.0
GArrowDecimal128 *
garrow_decimal128_scalar_get_value (GArrowDecimal128Scalar *scalar
);
Since: 5.0.0
GArrowDecimal256Scalar * garrow_decimal256_scalar_new (GArrowDecimal256DataType *data_type
,GArrowDecimal256 *value
);
Since: 5.0.0
GArrowDecimal256 *
garrow_decimal256_scalar_get_value (GArrowDecimal256Scalar *scalar
);
Since: 5.0.0
GArrowArray *
garrow_base_list_scalar_get_value (GArrowBaseListScalar *scalar
);
Since: 5.0.0
GArrowListScalar *
garrow_list_scalar_new (GArrowListArray *value
);
Since: 5.0.0
GArrowLargeListScalar *
garrow_large_list_scalar_new (GArrowLargeListArray *value
);
Since: 5.0.0
GArrowMapScalar *
garrow_map_scalar_new (GArrowStructArray *value
);
Since: 5.0.0
GArrowStructScalar * garrow_struct_scalar_new (GArrowStructDataType *data_type
,GList *value
);
data_type |
A GArrowStructDataType for this scalar. |
|
value |
The value of this scalar. |
[element-type GArrowScalar] |
Since: 5.0.0
GList *
garrow_struct_scalar_get_value (GArrowStructScalar *scalar
);
Since: 5.0.0
gint8
garrow_union_scalar_get_type_code (GArrowUnionScalar *scalar
);
Since: 6.0.0
GArrowScalar *
garrow_union_scalar_get_value (GArrowUnionScalar *scalar
);
Since: 5.0.0
GArrowSparseUnionScalar * garrow_sparse_union_scalar_new (GArrowSparseUnionDataType *data_type
,gint8 type_code
,GArrowScalar *value
);
data_type |
A GArrowSparseUnionDataType for this scalar. |
|
type_code |
The type code of this scalar. |
|
value |
The value of this scalar. |
Since: 5.0.0
GArrowDenseUnionScalar * garrow_dense_union_scalar_new (GArrowDenseUnionDataType *data_type
,gint8 type_code
,GArrowScalar *value
);
data_type |
A GArrowDenseUnionDataType for this scalar. |
|
type_code |
The type code of this scalar. |
|
value |
The value of this scalar. |
Since: 5.0.0
struct GArrowBooleanScalarClass { GArrowScalarClass parent_class; };
#define GARROW_TYPE_HALF_FLOAT_SCALAR (garrow_half_float_scalar_get_type())
struct GArrowHalfFloatScalarClass { GArrowScalarClass parent_class; };
#define GARROW_TYPE_BASE_BINARY_SCALAR (garrow_base_binary_scalar_get_type())
struct GArrowBaseBinaryScalarClass { GArrowScalarClass parent_class; };
struct GArrowBinaryScalarClass { GArrowBaseBinaryScalarClass parent_class; };
struct GArrowStringScalarClass { GArrowBaseBinaryScalarClass parent_class; };
#define GARROW_TYPE_LARGE_BINARY_SCALAR (garrow_large_binary_scalar_get_type())
struct GArrowLargeBinaryScalarClass { GArrowBaseBinaryScalarClass parent_class; };
#define GARROW_TYPE_LARGE_STRING_SCALAR (garrow_large_string_scalar_get_type())
struct GArrowLargeStringScalarClass { GArrowBaseBinaryScalarClass parent_class; };
struct GArrowFixedSizeBinaryScalarClass { GArrowBaseBinaryScalarClass parent_class; };
#define GARROW_TYPE_TIMESTAMP_SCALAR (garrow_timestamp_scalar_get_type())
struct GArrowTimestampScalarClass { GArrowScalarClass parent_class; };
struct GArrowMonthIntervalScalarClass { GArrowScalarClass parent_class; };
struct GArrowDayTimeIntervalScalarClass { GArrowScalarClass parent_class; };
struct GArrowMonthDayNanoIntervalScalarClass { GArrowScalarClass parent_class; };
#define GARROW_TYPE_DECIMAL128_SCALAR (garrow_decimal128_scalar_get_type())
struct GArrowDecimal128ScalarClass { GArrowScalarClass parent_class; };
#define GARROW_TYPE_DECIMAL256_SCALAR (garrow_decimal256_scalar_get_type())
struct GArrowDecimal256ScalarClass { GArrowScalarClass parent_class; };
#define GARROW_TYPE_BASE_LIST_SCALAR (garrow_base_list_scalar_get_type())
struct GArrowBaseListScalarClass { GArrowScalarClass parent_class; };
struct GArrowListScalarClass { GArrowBaseListScalarClass parent_class; };
#define GARROW_TYPE_LARGE_LIST_SCALAR (garrow_large_list_scalar_get_type())
struct GArrowLargeListScalarClass { GArrowBaseListScalarClass parent_class; };
struct GArrowMapScalarClass { GArrowBaseListScalarClass parent_class; };
#define GARROW_TYPE_SPARSE_UNION_SCALAR (garrow_sparse_union_scalar_get_type())
struct GArrowSparseUnionScalarClass { GArrowUnionScalarClass parent_class; };
#define GARROW_TYPE_DENSE_UNION_SCALAR (garrow_dense_union_scalar_get_type())
struct GArrowDenseUnionScalarClass { GArrowUnionScalarClass parent_class; };
#define GARROW_TYPE_EXTENSION_SCALAR (garrow_extension_scalar_get_type())
struct GArrowExtensionScalarClass { GArrowScalarClass parent_class; };
typedef struct _GArrowDayTimeIntervalScalar GArrowDayTimeIntervalScalar;
typedef struct _GArrowFixedSizeBinaryScalar GArrowFixedSizeBinaryScalar;
typedef struct _GArrowMonthDayNanoIntervalScalar GArrowMonthDayNanoIntervalScalar;
“value”
property“value” GArrowBuffer *
The value of the scalar.
Owner: GArrowBaseBinaryScalar
Flags: Write / Construct Only
Since: 5.0.0
“value”
property “value” GArrowArray *
The value of the scalar.
Owner: GArrowBaseListScalar
Flags: Write / Construct Only
Since: 5.0.0
“value”
property“value” GArrowDecimal128 *
The value of the scalar.
Owner: GArrowDecimal128Scalar
Flags: Write / Construct Only
Since: 5.0.0
“value”
property“value” GArrowDecimal256 *
The value of the scalar.
Owner: GArrowDecimal256Scalar
Flags: Write / Construct Only
Since: 5.0.0
“data-type”
property“data-type” GArrowDataType *
The data type of the scalar.
Owner: GArrowScalar
Flags: Write / Construct Only
Since: 5.0.0
“scalar”
property“scalar” gpointer
The raw std::shared<arrow::Scalar> *.
Owner: GArrowScalar
Flags: Write / Construct Only
“value”
property“value” GArrowScalar *
The value of the scalar.
Owner: GArrowUnionScalar
Flags: Write / Construct Only
Since: 5.0.0