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

Function garrow_count_options_class_init

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

Source from the content-addressed store, hash-verified

2988}
2989
2990static void
2991garrow_count_options_class_init(GArrowCountOptionsClass *klass)
2992{
2993 auto gobject_class = G_OBJECT_CLASS(klass);
2994
2995 gobject_class->set_property = garrow_count_options_set_property;
2996 gobject_class->get_property = garrow_count_options_get_property;
2997
2998 auto options = arrow::compute::CountOptions::Defaults();
2999
3000 GParamSpec *spec;
3001 /**
3002 * GArrowCountOptions:null-selection-behavior:
3003 *
3004 * How to handle counted values.
3005 *
3006 * Since: 0.17.0
3007 */
3008 spec = g_param_spec_enum("mode",
3009 "Count mode",
3010 "Which values to count",
3011 GARROW_TYPE_COUNT_MODE,
3012 static_cast<GArrowCountMode>(options.mode),
3013 static_cast<GParamFlags>(G_PARAM_READWRITE));
3014 g_object_class_install_property(gobject_class, PROP_MODE, spec);
3015}
3016
3017/**
3018 * garrow_count_options_new:

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected