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

Function garrow_split_pattern_options_class_init

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

Source from the content-addressed store, hash-verified

6551}
6552
6553static void
6554garrow_split_pattern_options_class_init(GArrowSplitPatternOptionsClass *klass)
6555{
6556 auto gobject_class = G_OBJECT_CLASS(klass);
6557
6558 gobject_class->set_property = garrow_split_pattern_options_set_property;
6559 gobject_class->get_property = garrow_split_pattern_options_get_property;
6560
6561 arrow::compute::SplitPatternOptions options;
6562
6563 GParamSpec *spec;
6564 /**
6565 * GArrowSplitPatternOptions:pattern:
6566 *
6567 * The exact substring to split on.
6568 *
6569 * Since: 16.0.0
6570 */
6571 spec = g_param_spec_string("pattern",
6572 "Pattern",
6573 "The exact substring to split on",
6574 options.pattern.c_str(),
6575 static_cast<GParamFlags>(G_PARAM_READWRITE));
6576 g_object_class_install_property(gobject_class,
6577 PROP_SPLIT_PATTERN_OPTIONS_PATTERN,
6578 spec);
6579
6580 /**
6581 * GArrowSplitPatternOptions:max_splits:
6582 *
6583 * Maximum number of splits allowed, or unlimited when -1.
6584 *
6585 * Since: 16.0.0
6586 */
6587 spec = g_param_spec_int64("max_splits",
6588 "Max splits",
6589 "Maximum number of splits allowed, or unlimited when -1",
6590 G_MININT64,
6591 G_MAXINT64,
6592 options.max_splits,
6593 static_cast<GParamFlags>(G_PARAM_READWRITE));
6594 g_object_class_install_property(gobject_class,
6595 PROP_SPLIT_PATTERN_OPTIONS_MAX_SPLITS,
6596 spec);
6597
6598 /**
6599 * GArrowSplitPatternOptions:reverse:
6600 *
6601 * Start splitting from the end of the string (only relevant when
6602 * max_splits != -1)
6603 *
6604 * Since: 16.0.0
6605 */
6606 spec = g_param_spec_boolean(
6607 "reverse",
6608 "Reverse",
6609 "Start splitting from the end of the string (only relevant when max_splits != -1)",
6610 options.reverse,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected