Filter classes

Filter classes

Functions

Properties

GGandivaCondition * condition Read / Write / Construct Only
gpointer filter Write / Construct Only
GArrowSchema * schema Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GGandivaFilter

Includes

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

Description

GGandivaFilter is a class for selecting records by a specific condition.

Functions

ggandiva_filter_new ()

GGandivaFilter *
ggandiva_filter_new (GArrowSchema *schema,
                     GGandivaCondition *condition,
                     GError **error);

Parameters

schema

A GArrowSchema.

 

condition

The condition to be used.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created GGandivaFilter on success, NULL on error.

[nullable]

Since: 4.0.0


ggandiva_filter_evaluate ()

gboolean
ggandiva_filter_evaluate (GGandivaFilter *filter,
                          GArrowRecordBatch *record_batch,
                          GGandivaSelectionVector *selection_vector,
                          GError **error);

Parameters

filter

A GGandivaFilter.

 

record_batch

A GArrowRecordBatch.

 

selection_vector

A GGandivaSelectionVector that is used as output.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE otherwise.

Since: 4.0.0

Types and Values

GGANDIVA_TYPE_FILTER

#define GGANDIVA_TYPE_FILTER (ggandiva_filter_get_type())

struct GGandivaFilterClass

struct GGandivaFilterClass {
  GObjectClass parent_class;
};

GGandivaFilter

typedef struct _GGandivaFilter GGandivaFilter;

Property Details

The “condition” property

  “condition”                GGandivaCondition *

The condition for the filter.

Owner: GGandivaFilter

Flags: Read / Write / Construct Only


The “filter” property

  “filter”                   gpointer

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

Owner: GGandivaFilter

Flags: Write / Construct Only


The “schema” property

  “schema”                   GArrowSchema *

The schema for input record batch.

Owner: GGandivaFilter

Flags: Read / Write / Construct Only