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

Function garrow_csv_read_options_class_init

c_glib/arrow-glib/reader.cpp:1060–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058}
1059
1060static void
1061garrow_csv_read_options_class_init(GArrowCSVReadOptionsClass *klass)
1062{
1063 GParamSpec *spec;
1064
1065 auto gobject_class = G_OBJECT_CLASS(klass);
1066
1067 gobject_class->dispose = garrow_csv_read_options_dispose;
1068 gobject_class->set_property = garrow_csv_read_options_set_property;
1069 gobject_class->get_property = garrow_csv_read_options_get_property;
1070
1071 auto read_options = arrow::csv::ReadOptions::Defaults();
1072
1073 /**
1074 * GArrowCSVReadOptions:use-threads:
1075 *
1076 * Whether to use the global CPU thread pool.
1077 *
1078 * Since: 0.12.0
1079 */
1080 spec = g_param_spec_boolean("use-threads",
1081 "Use threads",
1082 "Whether to use the global CPU thread pool",
1083 read_options.use_threads,
1084 static_cast<GParamFlags>(G_PARAM_READWRITE));
1085 g_object_class_install_property(gobject_class, PROP_USE_THREADS, spec);
1086
1087 /**
1088 * GArrowCSVReadOptions:block-size:
1089 *
1090 * Block size we request from the IO layer; also determines the size
1091 * of chunks when #GArrowCSVReadOptions:use-threads is %TRUE.
1092 *
1093 * Since: 0.12.0
1094 */
1095 spec = g_param_spec_int("block-size",
1096 "Block size",
1097 "Block size we request from the IO layer; "
1098 "also determines the size of chunks "
1099 "when ::use-threads is TRUE",
1100 0,
1101 G_MAXINT,
1102 read_options.block_size,
1103 static_cast<GParamFlags>(G_PARAM_READWRITE));
1104 g_object_class_install_property(gobject_class, PROP_BLOCK_SIZE, spec);
1105
1106 /**
1107 * GArrowCSVReadOptions:n-skip-rows:
1108 *
1109 * The number of header rows to skip (not including
1110 * the row of column names, if any)
1111 *
1112 * Since: 0.15.0
1113 */
1114 spec = g_param_spec_uint("n-skip-rows",
1115 "N skip rows",
1116 "The number of header rows to skip "
1117 "(not including the row of column names, if any)",

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected