Expression classes

Expression classes

Functions

Properties

gpointer expression Write / Construct Only
GArrowField * result-field Read / Write / Construct Only
GGandivaNode * root-node Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GGandivaExpression
        ├── GGandivaCondition
        ╰── GGandivaCondition

Includes

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

Description

GGandivaExpression is a class for an expression tree with a root node, and a result field.

GGandivaCondition is a class for an expression that returns boolean.

Functions

ggandiva_expression_new ()

GGandivaExpression *
ggandiva_expression_new (GGandivaNode *root_node,
                         GArrowField *result_field);

Parameters

root_node

The root node for the expression.

 

result_field

The name and type of returned value as GArrowField.

 

Returns

A newly created GGandivaExpression.

Since: 0.12.0


ggandiva_expression_to_string ()

gchar *
ggandiva_expression_to_string (GGandivaExpression *expression);

Parameters

expression

A GGandivaExpression.

 

Returns

The string representation of the node in the expression tree.

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

[transfer full]

Since: 0.12.0


ggandiva_condition_new ()

GGandivaCondition *
ggandiva_condition_new (GGandivaNode *root_node);

Parameters

root_node

The root node for the condition.

 

Returns

A newly created GGandivaCondition.

Since: 4.0.0

Types and Values

GGANDIVA_TYPE_EXPRESSION

#define GGANDIVA_TYPE_EXPRESSION (ggandiva_expression_get_type())

struct GGandivaExpressionClass

struct GGandivaExpressionClass {
  GObjectClass parent_class;
};

GGANDIVA_TYPE_CONDITION

#define GGANDIVA_TYPE_CONDITION (ggandiva_condition_get_type())

struct GGandivaConditionClass

struct GGandivaConditionClass {
  GGandivaExpressionClass parent_class;
};

GGandivaCondition

typedef struct _GGandivaCondition GGandivaCondition;

GGandivaExpression

typedef struct _GGandivaExpression GGandivaExpression;

Property Details

The “expression” property

  “expression”               gpointer

The raw std::shared<gandiva::Expression> *.

Owner: GGandivaExpression

Flags: Write / Construct Only


The “result-field” property

  “result-field”             GArrowField *

The name and type of returned value as #GArrowField.

Owner: GGandivaExpression

Flags: Read / Write / Construct Only


The “root-node” property

  “root-node”                GGandivaNode *

The root node for the expression.

Owner: GGandivaExpression

Flags: Read / Write / Construct Only