MCPcopy Create free account
hub / github.com/apache/arrow / garrow_execute_context_set_property

Function garrow_execute_context_set_property

c_glib/arrow-glib/compute.cpp:408–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408static void
409garrow_execute_context_set_property(GObject *object,
410 guint prop_id,
411 const GValue *value,
412 GParamSpec *pspec)
413{
414 auto priv = GARROW_EXECUTE_CONTEXT_GET_PRIVATE(object);
415
416 switch (prop_id) {
417 case PROP_EXECUTOR:
418 {
419 priv->executor = GARROW_EXECUTOR(g_value_dup_object(value));
420 auto arrow_executor = garrow_executor_get_raw(priv->executor);
421 priv->context =
422 std::make_shared<arrow::compute::ExecContext>(arrow::default_memory_pool(),
423 arrow_executor.get());
424 break;
425 }
426 default:
427 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
428 break;
429 }
430}
431
432static void
433garrow_execute_context_get_property(GObject *object,

Callers

nothing calls this directly

Calls 2

default_memory_poolFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected