| 10772 | } |
| 10773 | |
| 10774 | static void |
| 10775 | garrow_split_options_class_init(GArrowSplitOptionsClass *klass) |
| 10776 | { |
| 10777 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 10778 | |
| 10779 | gobject_class->set_property = garrow_split_options_set_property; |
| 10780 | gobject_class->get_property = garrow_split_options_get_property; |
| 10781 | |
| 10782 | arrow::compute::SplitOptions options; |
| 10783 | |
| 10784 | GParamSpec *spec; |
| 10785 | /** |
| 10786 | * GArrowSplitOptions:max-splits: |
| 10787 | * |
| 10788 | * Maximum number of splits allowed, or unlimited when -1. |
| 10789 | * |
| 10790 | * Since: 23.0.0 |
| 10791 | */ |
| 10792 | spec = g_param_spec_int64("max-splits", |
| 10793 | "Max splits", |
| 10794 | "Maximum number of splits allowed, or unlimited when -1", |
| 10795 | -1, |
| 10796 | G_MAXINT64, |
| 10797 | options.max_splits, |
| 10798 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 10799 | g_object_class_install_property(gobject_class, PROP_SPLIT_OPTIONS_MAX_SPLITS, spec); |
| 10800 | |
| 10801 | /** |
| 10802 | * GArrowSplitOptions:reverse: |
| 10803 | * |
| 10804 | * Start splitting from the end of the string (only relevant when max_splits != -1). |
| 10805 | * |
| 10806 | * Since: 23.0.0 |
| 10807 | */ |
| 10808 | spec = g_param_spec_boolean( |
| 10809 | "reverse", |
| 10810 | "Reverse", |
| 10811 | "Start splitting from the end of the string (only relevant when max_splits != -1)", |
| 10812 | options.reverse, |
| 10813 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 10814 | g_object_class_install_property(gobject_class, PROP_SPLIT_OPTIONS_REVERSE, spec); |
| 10815 | } |
| 10816 | |
| 10817 | /** |
| 10818 | * garrow_split_options_new: |
nothing calls this directly
no outgoing calls
no test coverage detected