| 3794 | } |
| 3795 | |
| 3796 | static void |
| 3797 | garrow_variance_options_class_init(GArrowVarianceOptionsClass *klass) |
| 3798 | { |
| 3799 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 3800 | |
| 3801 | gobject_class->set_property = garrow_variance_options_set_property; |
| 3802 | gobject_class->get_property = garrow_variance_options_get_property; |
| 3803 | |
| 3804 | arrow::compute::VarianceOptions options; |
| 3805 | |
| 3806 | GParamSpec *spec; |
| 3807 | /** |
| 3808 | * GArrowVarianceOptions:ddof: |
| 3809 | * |
| 3810 | * The Delta Degrees of Freedom (ddof) to be used. |
| 3811 | * |
| 3812 | * Since: 6.0.0 |
| 3813 | */ |
| 3814 | spec = g_param_spec_int("ddof", |
| 3815 | "Delta Degrees of Freedom", |
| 3816 | "The Delta Degrees of Freedom (ddof) to be used", |
| 3817 | G_MININT, |
| 3818 | G_MAXINT, |
| 3819 | options.ddof, |
| 3820 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 3821 | g_object_class_install_property(gobject_class, PROP_VARIANCE_OPTIONS_DDOF, spec); |
| 3822 | |
| 3823 | /** |
| 3824 | * GArrowVarianceOptions:skip-nulls: |
| 3825 | * |
| 3826 | * Whether NULLs are skipped or not. |
| 3827 | * |
| 3828 | * Since: 6.0.0 |
| 3829 | */ |
| 3830 | spec = g_param_spec_boolean("skip-nulls", |
| 3831 | "Skip NULLs", |
| 3832 | "Whether NULLs are skipped or not", |
| 3833 | options.skip_nulls, |
| 3834 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 3835 | g_object_class_install_property(gobject_class, PROP_VARIANCE_OPTIONS_SKIP_NULLS, spec); |
| 3836 | |
| 3837 | /** |
| 3838 | * GArrowVarianceOptions:min-count: |
| 3839 | * |
| 3840 | * If less than this many non-null values are observed, emit null. |
| 3841 | * |
| 3842 | * Since: 6.0.0 |
| 3843 | */ |
| 3844 | spec = g_param_spec_uint("min-count", |
| 3845 | "Min count", |
| 3846 | "If less than this many non-null values " |
| 3847 | "are observed, emit null", |
| 3848 | 0, |
| 3849 | G_MAXUINT, |
| 3850 | options.min_count, |
| 3851 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 3852 | g_object_class_install_property(gobject_class, PROP_VARIANCE_OPTIONS_MIN_COUNT, spec); |
| 3853 | } |
nothing calls this directly
no outgoing calls
no test coverage detected