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

Function create_int32_array

test/src/unit-cppapi-hilbert.cc:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39using namespace tiledb::test;
40
41void create_int32_array(Context ctx, const std::string& array_name) {
42 Domain domain(ctx);
43 auto d1 = Dimension::create<int32_t>(ctx, "d1", {{0, 100}});
44 auto d2 = Dimension::create<int32_t>(ctx, "d2", {{0, 200}});
45 domain.add_dimensions(d1, d2);
46 auto a = Attribute::create<int32_t>(ctx, "a");
47 ArraySchema schema(ctx, TILEDB_SPARSE);
48 schema.set_domain(domain);
49 schema.add_attribute(a);
50 schema.set_cell_order(TILEDB_HILBERT);
51 schema.set_capacity(2);
52 CHECK_NOTHROW(schema.check());
53 Array::create(array_name, schema);
54}
55
56void create_int32_array_negative_domain(
57 Context ctx, const std::string& array_name) {

Callers 1

Calls 5

set_domainMethod · 0.45
add_attributeMethod · 0.45
set_cell_orderMethod · 0.45
set_capacityMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected