NativeFunction class

NativeFunction class — NativeFunction class

Functions

Properties

gpointer native-function Write / Construct Only

Types and Values

Object Hierarchy

    GEnum
    ╰── GGandivaResultNullableType
    GObject
    ╰── GGandivaNativeFunction

Includes

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

Description

Functions

ggandiva_native_function_get_signatures ()

GList *
ggandiva_native_function_get_signatures
                               (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

A list of GGandivaFunctionSignature supported by the native function.

[element-type GGandivaFunctionSignature][transfer full]

Since: 0.15.0


ggandiva_native_function_equal ()

gboolean
ggandiva_native_function_equal (GGandivaNativeFunction *native_function,
                                GGandivaNativeFunction *other_native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

other_native_function

A GGandivaNativeFunction to be compared.

 

Returns

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

Since: 0.14.0


ggandiva_native_function_to_string ()

gchar *
ggandiva_native_function_to_string (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

The string representation of the signatures of the native function. It should be freed with g_free() when no longer needed.

[transfer full]

Since: 0.14.0


ggandiva_native_function_get_result_nullable_type ()

GGandivaResultNullableType
ggandiva_native_function_get_result_nullable_type
                               (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

A value of GGandivaResultNullableType.

Since: 0.14.0


ggandiva_native_function_need_context ()

gboolean
ggandiva_native_function_need_context (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

TRUE if the native function needs a context for evaluation, FALSE otherwise.

Since: 0.14.0


ggandiva_native_function_need_function_holder ()

gboolean
ggandiva_native_function_need_function_holder
                               (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

TRUE if the native function needs a function holder for evaluation, FALSE otherwise.

Since: 0.14.0


ggandiva_native_function_can_return_errors ()

gboolean
ggandiva_native_function_can_return_errors
                               (GGandivaNativeFunction *native_function);

Parameters

native_function

A GGandivaNativeFunction.

 

Returns

TRUE if the native function has the possibility of returning errors, FALSE otherwise.

Since: 0.14.0

Types and Values

enum GGandivaResultNullableType

They are corresponding to gandiva::ResultNullableType values.

Members

GGANDIVA_RESULT_NULL_IF_NULL

This means the result validity is an intersection of the validity of the children.

 

GGANDIVA_RESULT_NULL_NEVER

This means that the result is always valid.

 

GGANDIVA_RESULT_NULL_INTERNAL

This means that the result validity depends on some internal logic.

 

GGANDIVA_TYPE_NATIVE_FUNCTION

#define GGANDIVA_TYPE_NATIVE_FUNCTION (ggandiva_native_function_get_type())

struct GGandivaNativeFunctionClass

struct GGandivaNativeFunctionClass {
  GObjectClass parent_class;
};

GGandivaNativeFunction

typedef struct _GGandivaNativeFunction GGandivaNativeFunction;

Property Details

The “native-function” property

  “native-function”          gpointer

The raw gandiva::NativeFunction *.

Owner: GGandivaNativeFunction

Flags: Write / Construct Only