Expression

Expression

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GArrowExpression
        ├── GArrowCallExpression
        ├── GArrowFieldExpression
        ╰── GArrowLiteralExpression

Includes

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

Description

GArrowExpression is a base class for all expression classes such as GArrowLiteralExpression.

GArrowLiteralExpression is a class for literal value.

GArrowFieldExpression is a class for field reference.

GArrowCallExpression is a class for function call.

Functions

garrow_expression_to_string ()

gchar *
garrow_expression_to_string (GArrowExpression *expression);

Parameters

expression

A GArrowExpression.

 

Returns

The formatted expression.

It should be freed with g_free() when no longer needed.

Since: 6.0.0


garrow_expression_equal ()

gboolean
garrow_expression_equal (GArrowExpression *expression,
                         GArrowExpression *other_expression);

Parameters

expression

A GArrowExpression.

 

other_expression

A GArrowExpression.

 

Returns

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

Since: 6.0.0


garrow_literal_expression_new ()

GArrowLiteralExpression *
garrow_literal_expression_new (GArrowDatum *datum);

Parameters

datum

A GArrowDatum.

 

Returns

A newly created GArrowLiteralExpression.

Since: 6.0.0


garrow_field_expression_new ()

GArrowFieldExpression *
garrow_field_expression_new (const gchar *reference,
                             GError **error);

Parameters

reference

A field name or dot path.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created GArrowFieldExpression on sucess, NULL on error.

Since: 6.0.0


garrow_call_expression_new ()

GArrowCallExpression *
garrow_call_expression_new (const gchar *function,
                            GList *arguments,
                            GArrowFunctionOptions *options);

Parameters

function

A name of function to be called.

 

arguments

Arguments of this call.

[element-type GArrowExpression]

options

A GArrowFunctionOptions for the called function.

[nullable]

Returns

A newly created GArrowCallExpression.

Since: 6.0.0

Types and Values

GARROW_TYPE_LITERAL_EXPRESSION

#define GARROW_TYPE_LITERAL_EXPRESSION (garrow_literal_expression_get_type())

struct GArrowLiteralExpressionClass

struct GArrowLiteralExpressionClass {
  GArrowExpressionClass parent_class;
};

GARROW_TYPE_FIELD_EXPRESSION

#define GARROW_TYPE_FIELD_EXPRESSION (garrow_field_expression_get_type())

struct GArrowFieldExpressionClass

struct GArrowFieldExpressionClass {
  GArrowExpressionClass parent_class;
};

GARROW_TYPE_CALL_EXPRESSION

#define GARROW_TYPE_CALL_EXPRESSION (garrow_call_expression_get_type())

struct GArrowCallExpressionClass

struct GArrowCallExpressionClass {
  GArrowExpressionClass parent_class;
};

GArrowCallExpression

typedef struct _GArrowCallExpression GArrowCallExpression;

GArrowFieldExpression

typedef struct _GArrowFieldExpression GArrowFieldExpression;

GArrowLiteralExpression

typedef struct _GArrowLiteralExpression GArrowLiteralExpression;