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

Function garrow_s3_initialize

c_glib/arrow-glib/file-system.cpp:1503–1517  ·  view source on GitHub ↗

* garrow_s3_initialize: * @options: (nullable): Options to initialize the S3 APIs. * @error: (nullable): Return location for a #GError or %NULL. * * Normally, you don't need to call this function because the S3 APIs * are initialized with the default options automatically. If you want * to call this function, you must call this function before you use * any #GArrowS3FileSystem related APIs.

Source from the content-addressed store, hash-verified

1501 * Since: 7.0.0
1502 */
1503gboolean
1504garrow_s3_initialize(GArrowS3GlobalOptions *options, GError **error)
1505{
1506#ifdef ARROW_S3
1507 auto arrow_options = garrow_s3_global_options_get_raw(options);
1508 return garrow::check(error,
1509 arrow::fs::InitializeS3(*arrow_options),
1510 "[s3][initialize]");
1511#else
1512 return garrow::check(
1513 error,
1514 arrow::Status::NotImplemented("Apache Arrow C++ isn't built with S3 support"),
1515 "[s3][initialize]");
1516#endif
1517}
1518
1519/**
1520 * garrow_s3_finalize:

Callers

nothing calls this directly

Calls 4

InitializeS3Function · 0.85
checkFunction · 0.70
NotImplementedFunction · 0.50

Tested by

no test coverage detected