| 455 | } |
| 456 | |
| 457 | static void |
| 458 | garrow_csv_write_options_class_init(GArrowCSVWriteOptionsClass *klass) |
| 459 | { |
| 460 | GParamSpec *spec; |
| 461 | |
| 462 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 463 | |
| 464 | gobject_class->finalize = garrow_csv_write_options_finalize; |
| 465 | gobject_class->set_property = garrow_csv_write_options_set_property; |
| 466 | gobject_class->get_property = garrow_csv_write_options_get_property; |
| 467 | |
| 468 | auto write_options = arrow::csv::WriteOptions::Defaults(); |
| 469 | |
| 470 | /** |
| 471 | * GArrowCSVWriteOptions:include-header: |
| 472 | * |
| 473 | * Whether to write an initial header line with column names. |
| 474 | * |
| 475 | * Since: 23.0.0 |
| 476 | */ |
| 477 | spec = g_param_spec_boolean("include-header", |
| 478 | "Include header", |
| 479 | "Whether to write an initial header line with column names", |
| 480 | write_options.include_header, |
| 481 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 482 | g_object_class_install_property(gobject_class, |
| 483 | PROP_CSV_WRITE_OPTIONS_INCLUDE_HEADER, |
| 484 | spec); |
| 485 | |
| 486 | /** |
| 487 | * GArrowCSVWriteOptions:batch-size: |
| 488 | * |
| 489 | * Maximum number of rows processed at a time. |
| 490 | * |
| 491 | * The CSV writer converts and writes data in batches of N rows. This number can impact |
| 492 | * performance. |
| 493 | * |
| 494 | * Since: 23.0.0 |
| 495 | */ |
| 496 | spec = g_param_spec_int("batch-size", |
| 497 | "Batch size", |
| 498 | "Maximum number of rows processed at a time", |
| 499 | 1, |
| 500 | G_MAXINT32, |
| 501 | write_options.batch_size, |
| 502 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 503 | g_object_class_install_property(gobject_class, PROP_CSV_WRITE_OPTIONS_BATCH_SIZE, spec); |
| 504 | |
| 505 | /** |
| 506 | * GArrowCSVWriteOptions:delimiter: |
| 507 | * |
| 508 | * Field delimiter. |
| 509 | * |
| 510 | * Since: 23.0.0 |
| 511 | */ |
| 512 | spec = g_param_spec_char("delimiter", |
| 513 | "Delimiter", |
| 514 | "Field delimiter", |
nothing calls this directly
no test coverage detected