MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / create

Method create

tiledb/sm/cpp_api/array.h:678–684  ·  view source on GitHub ↗

* Creates a new TileDB array given an input schema. * * **Example:** * @code{.cpp} * tiledb::Array::create(ctx, "s3://bucket-name/array-name", schema); * @endcode * * @param ctx The TileDB context. * @param uri URI where array will be created. * @param schema The array schema. */

Source from the content-addressed store, hash-verified

676 * @param schema The array schema.
677 */
678 static void create(
679 const Context& ctx, const std::string& uri, const ArraySchema& schema) {
680 tiledb_ctx_t* c_ctx = ctx.ptr().get();
681 ctx.handle_error(tiledb_array_schema_check(c_ctx, schema.ptr().get()));
682 ctx.handle_error(
683 tiledb_array_create(c_ctx, uri.c_str(), schema.ptr().get()));
684 }
685
686 /**
687 * Creates a new TileDB array given an input schema.

Callers

nothing calls this directly

Calls 7

tiledb_array_createFunction · 0.85
handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected