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

Function garrow_write_options_class_init

c_glib/arrow-glib/ipc-options.cpp:361–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static void
362garrow_write_options_class_init(GArrowWriteOptionsClass *klass)
363{
364 auto gobject_class = G_OBJECT_CLASS(klass);
365
366 gobject_class->dispose = garrow_write_options_dispose;
367 gobject_class->finalize = garrow_write_options_finalize;
368 gobject_class->set_property = garrow_write_options_set_property;
369 gobject_class->get_property = garrow_write_options_get_property;
370
371 auto options = arrow::ipc::IpcWriteOptions::Defaults();
372
373 GParamSpec *spec;
374
375 /**
376 * GArrowWriteOptions:allow-64bit:
377 *
378 * Whether to allow field lengths that don't fit in a signed 32-bit
379 * int. Some implementations may not be able to parse such streams.
380 *
381 * Since: 1.0.0
382 */
383 spec = g_param_spec_boolean("allow-64bit",
384 "Allow 64bit",
385 "Whether to allow signed 64-bit int "
386 "for field length",
387 options.allow_64bit,
388 static_cast<GParamFlags>(G_PARAM_READWRITE));
389 g_object_class_install_property(gobject_class, PROP_WRITE_OPTIONS_ALLOW_64BIT, spec);
390
391 /**
392 * GArrowWriteOptions:max-recursion-depth:
393 *
394 * The maximum permitted schema nesting depth.
395 *
396 * Since: 1.0.0
397 */
398 spec = g_param_spec_int("max-recursion-depth",
399 "Max recursion depth",
400 "The maximum permitted schema nesting depth",
401 0,
402 arrow::ipc::kMaxNestingDepth,
403 options.max_recursion_depth,
404 static_cast<GParamFlags>(G_PARAM_READWRITE));
405 g_object_class_install_property(gobject_class,
406 PROP_WRITE_OPTIONS_MAX_RECURSION_DEPTH,
407 spec);
408
409 /**
410 * GArrowWriteOptions:alignment:
411 *
412 * Write padding after memory buffers to this multiple of
413 * bytes. Generally 8 or 64.
414 *
415 * Since: 1.0.0
416 */
417 spec = g_param_spec_int("alignment",
418 "Alignment",

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected