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

Function garrow_cast_options_class_init

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

Source from the content-addressed store, hash-verified

2695}
2696
2697static void
2698garrow_cast_options_class_init(GArrowCastOptionsClass *klass)
2699{
2700 auto gobject_class = G_OBJECT_CLASS(klass);
2701
2702 gobject_class->dispose = garrow_cast_options_dispose;
2703 gobject_class->set_property = garrow_cast_options_set_property;
2704 gobject_class->get_property = garrow_cast_options_get_property;
2705
2706 GParamSpec *spec;
2707
2708 /**
2709 * GArrowCastOptions:to-data-type:
2710 *
2711 * The #GArrowDataType being casted to.
2712 *
2713 * Since: 1.0.0
2714 */
2715 spec = g_param_spec_object("to-data-type",
2716 "To data type",
2717 "The GArrowDataType being casted to",
2718 GARROW_TYPE_DATA_TYPE,
2719 static_cast<GParamFlags>(G_PARAM_READWRITE));
2720 g_object_class_install_property(gobject_class, PROP_TO_DATA_TYPE, spec);
2721
2722 /**
2723 * GArrowCastOptions:allow-int-overflow:
2724 *
2725 * Whether integer overflow is allowed or not.
2726 *
2727 * Since: 0.7.0
2728 */
2729 spec = g_param_spec_boolean("allow-int-overflow",
2730 "Allow int overflow",
2731 "Whether integer overflow is allowed or not",
2732 FALSE,
2733 static_cast<GParamFlags>(G_PARAM_READWRITE));
2734 g_object_class_install_property(gobject_class, PROP_ALLOW_INT_OVERFLOW, spec);
2735
2736 /**
2737 * GArrowCastOptions:allow-time-truncate:
2738 *
2739 * Whether truncating time value is allowed or not.
2740 *
2741 * Since: 0.8.0
2742 */
2743 spec = g_param_spec_boolean("allow-time-truncate",
2744 "Allow time truncate",
2745 "Whether truncating time value is allowed or not",
2746 FALSE,
2747 static_cast<GParamFlags>(G_PARAM_READWRITE));
2748 g_object_class_install_property(gobject_class, PROP_ALLOW_TIME_TRUNCATE, spec);
2749
2750 /**
2751 * GArrowCastOptions:allow-time-overflow:
2752 *
2753 * Whether time overflow is allowed or not.
2754 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected