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

Function garrow_slice_options_class_init

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

Source from the content-addressed store, hash-verified

9953}
9954
9955static void
9956garrow_slice_options_class_init(GArrowSliceOptionsClass *klass)
9957{
9958 auto gobject_class = G_OBJECT_CLASS(klass);
9959
9960 gobject_class->set_property = garrow_slice_options_set_property;
9961 gobject_class->get_property = garrow_slice_options_get_property;
9962
9963 arrow::compute::SliceOptions options;
9964
9965 GParamSpec *spec;
9966 /**
9967 * GArrowSliceOptions:start:
9968 *
9969 * Index to start slicing at (inclusive).
9970 *
9971 * Since: 23.0.0
9972 */
9973 spec = g_param_spec_int64("start",
9974 "Start",
9975 "Index to start slicing at (inclusive)",
9976 G_MININT64,
9977 G_MAXINT64,
9978 options.start,
9979 static_cast<GParamFlags>(G_PARAM_READWRITE));
9980 g_object_class_install_property(gobject_class, PROP_SLICE_OPTIONS_START, spec);
9981
9982 /**
9983 * GArrowSliceOptions:stop:
9984 *
9985 * Index to stop slicing at (exclusive).
9986 *
9987 * Since: 23.0.0
9988 */
9989 spec = g_param_spec_int64("stop",
9990 "Stop",
9991 "Index to stop slicing at (exclusive)",
9992 G_MININT64,
9993 G_MAXINT64,
9994 options.stop,
9995 static_cast<GParamFlags>(G_PARAM_READWRITE));
9996 g_object_class_install_property(gobject_class, PROP_SLICE_OPTIONS_STOP, spec);
9997
9998 /**
9999 * GArrowSliceOptions:step:
10000 *
10001 * Slice step.
10002 *
10003 * Since: 23.0.0
10004 */
10005 spec = g_param_spec_int64("step",
10006 "Step",
10007 "Slice step",
10008 G_MININT64,
10009 G_MAXINT64,
10010 options.step,
10011 static_cast<GParamFlags>(G_PARAM_READWRITE));
10012 g_object_class_install_property(gobject_class, PROP_SLICE_OPTIONS_STEP, spec);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected