| 4439 | } |
| 4440 | |
| 4441 | static void |
| 4442 | garrow_quantile_options_class_init(GArrowQuantileOptionsClass *klass) |
| 4443 | { |
| 4444 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 4445 | |
| 4446 | gobject_class->set_property = garrow_quantile_options_set_property; |
| 4447 | gobject_class->get_property = garrow_quantile_options_get_property; |
| 4448 | |
| 4449 | auto options = arrow::compute::QuantileOptions::Defaults(); |
| 4450 | |
| 4451 | GParamSpec *spec; |
| 4452 | /** |
| 4453 | * GArrowQuantileOptions:interpolation: |
| 4454 | * |
| 4455 | * Interpolation method to use when quantile lies between two data |
| 4456 | * points. |
| 4457 | * |
| 4458 | * Since: 9.0.0 |
| 4459 | */ |
| 4460 | spec = |
| 4461 | g_param_spec_enum("interpolation", |
| 4462 | "Interpolation", |
| 4463 | "Interpolation method to use when " |
| 4464 | "quantile lies between two data points.", |
| 4465 | GARROW_TYPE_QUANTILE_INTERPOLATION, |
| 4466 | static_cast<GArrowQuantileInterpolation>(options.interpolation), |
| 4467 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 4468 | g_object_class_install_property(gobject_class, |
| 4469 | PROP_QUANTILE_OPTIONS_INTERPOLATION, |
| 4470 | spec); |
| 4471 | |
| 4472 | /** |
| 4473 | * GArrowQuantileOptions:skip-nulls: |
| 4474 | * |
| 4475 | * If true (the default), null values are ignored. Otherwise, if any |
| 4476 | * value is null, emit null. |
| 4477 | * |
| 4478 | * Since: 9.0.0 |
| 4479 | */ |
| 4480 | spec = g_param_spec_boolean("skip-nulls", |
| 4481 | "Skip nulls", |
| 4482 | "If true (the default), " |
| 4483 | "null values are ignored. " |
| 4484 | "Otherwise, if any value is null, " |
| 4485 | "emit null.", |
| 4486 | options.skip_nulls, |
| 4487 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 4488 | g_object_class_install_property(gobject_class, PROP_QUANTILE_OPTIONS_SKIP_NULLS, spec); |
| 4489 | |
| 4490 | /** |
| 4491 | * GArrowQuantileOptions:min-count: |
| 4492 | * |
| 4493 | * If less than this many non-null values are observed, emit null. |
| 4494 | * |
| 4495 | * Since: 9.0.0 |
| 4496 | */ |
| 4497 | spec = g_param_spec_uint("min-count", |
| 4498 | "Min count", |
nothing calls this directly
no test coverage detected