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

Function create_array

examples/cpp_api/writing_remote_global.cc:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65std::vector<uint64_t> coords;
66
67void create_array(Context& ctx) {
68 ArraySchema schema(ctx, array_type);
69 Domain domain(ctx);
70 domain.add_dimension(
71 Dimension::create<uint64_t>(ctx, "d1", {0, dim_limit}, tile_extent));
72 schema.set_domain(domain);
73 schema.add_attribute(Attribute::create<uint64_t>(ctx, "a1"));
74 schema.add_attribute(
75 Attribute::create<uint64_t>(ctx, "a2").set_nullable(true));
76 schema.add_attribute(Attribute::create<std::vector<char>>(ctx, "a3"));
77 if (array_type == TILEDB_SPARSE) {
78 schema.set_capacity(capacity);
79 }
80 Array::create(s3_array, schema);
81}
82
83// Each global order write of size chunk_size will create an intermediate S3
84// chunk which can be observed (when pausing execution before

Callers 1

mainFunction · 0.70

Calls 5

add_dimensionMethod · 0.45
set_domainMethod · 0.45
add_attributeMethod · 0.45
set_nullableMethod · 0.45
set_capacityMethod · 0.45

Tested by

no test coverage detected