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

Function garrow_json_read_options_class_init

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

Source from the content-addressed store, hash-verified

2015}
2016
2017static void
2018garrow_json_read_options_class_init(GArrowJSONReadOptionsClass *klass)
2019{
2020 GParamSpec *spec;
2021
2022 auto gobject_class = G_OBJECT_CLASS(klass);
2023
2024 gobject_class->dispose = garrow_json_read_options_dispose;
2025 gobject_class->set_property = garrow_json_read_options_set_property;
2026 gobject_class->get_property = garrow_json_read_options_get_property;
2027
2028 auto read_options = arrow::json::ReadOptions::Defaults();
2029
2030 /**
2031 * GArrowJSONReadOptions:use-threads:
2032 *
2033 * Whether to use the global CPU thread pool.
2034 *
2035 * Since: 0.14.0
2036 */
2037 spec = g_param_spec_boolean("use-threads",
2038 "Use threads",
2039 "Whether to use the global CPU thread pool",
2040 read_options.use_threads,
2041 static_cast<GParamFlags>(G_PARAM_READWRITE));
2042 g_object_class_install_property(gobject_class,
2043 PROP_JSON_READ_OPTIONS_USE_THREADS,
2044 spec);
2045
2046 /**
2047 * GArrowJSONReadOptions:block-size:
2048 *
2049 * Block size we request from the IO layer; also determines the size
2050 * of chunks when #GArrowJSONReadOptions:use-threads is %TRUE.
2051 *
2052 * Since: 0.14.0
2053 */
2054 spec = g_param_spec_int("block-size",
2055 "Block size",
2056 "Block size we request from the IO layer; "
2057 "also determines the size of chunks "
2058 "when ::use-threads is TRUE",
2059 0,
2060 G_MAXINT,
2061 read_options.block_size,
2062 static_cast<GParamFlags>(G_PARAM_READWRITE));
2063 g_object_class_install_property(gobject_class, PROP_JSON_READ_OPTIONS_BLOCK_SIZE, spec);
2064
2065 auto parse_options = arrow::json::ParseOptions::Defaults();
2066
2067 /**
2068 * GArrowJSONReadOptions:allow-newlines-in-values:
2069 *
2070 * Whether objects may be printed across multiple lines (for example pretty printed).
2071 * if %FALSE, input must end with an empty line.
2072 *
2073 * Since: 0.14.0
2074 */

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected