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

Function garrow_json_reader_read

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

* garrow_json_reader_read: * @reader: A #GArrowJSONReader. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): A read #GArrowTable or %NULL on error. * * Since: 0.14.0 */

Source from the content-addressed store, hash-verified

2292 * Since: 0.14.0
2293 */
2294GArrowTable *
2295garrow_json_reader_read(GArrowJSONReader *reader, GError **error)
2296{
2297 auto arrow_reader = garrow_json_reader_get_raw(reader);
2298 auto arrow_table = arrow_reader->Read();
2299 if (garrow::check(error, arrow_table, "[json-reader][read]")) {
2300 return garrow_table_new_raw(&(arrow_table.ValueOrDie()));
2301 } else {
2302 return NULL;
2303 }
2304}
2305
2306G_END_DECLS
2307

Callers

nothing calls this directly

Calls 5

garrow_table_new_rawFunction · 0.85
ValueOrDieMethod · 0.80
checkFunction · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected