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

Function create_sparse_array_v11

test/support/src/helpers.cc:1513–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1511}
1512
1513void create_sparse_array_v11(tiledb_ctx_t* ctx, const std::string& array_name) {
1514 tiledb_config_t* config;
1515 REQUIRE(tiledb_ctx_get_config(ctx, &config) == TILEDB_OK);
1516 tiledb_vfs_t* vfs;
1517 REQUIRE(tiledb_vfs_alloc(ctx, config, &vfs) == TILEDB_OK);
1518 // Get the v11 sparse array.
1519 std::string v11_arrays_dir =
1520 std::string(TILEDB_TEST_INPUTS_DIR) + "/arrays/sparse_array_v11";
1521 REQUIRE(
1522 tiledb_vfs_copy_dir(
1523 ctx, vfs, v11_arrays_dir.c_str(), array_name.c_str()) == TILEDB_OK);
1524}
1525
1526void write_sparse_v11(
1527 tiledb_ctx_t* ctx, const std::string& array_name, uint64_t timestamp) {

Calls 4

tiledb_ctx_get_configFunction · 0.85
tiledb_vfs_allocFunction · 0.85
tiledb_vfs_copy_dirFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected