| 406 | } |
| 407 | |
| 408 | static void |
| 409 | garrow_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 | |
| 432 | static void |
| 433 | garrow_execute_context_get_property(GObject *object, |
nothing calls this directly
no test coverage detected