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

Method put_metadata

tiledb/sm/cpp_api/array.h:1067–1076  ·  view source on GitHub ↗

* It puts a metadata key-value item to an open array. The array must * be opened in WRITE mode, otherwise the function will error out. * * @param key The key of the metadata item to be added. UTF-8 encodings * are acceptable. * @param value_type The datatype of the value. * @param value_num The value may consist of more than one items of the * same datatype. This argum

Source from the content-addressed store, hash-verified

1065 * @note The writes will take effect only upon closing the array.
1066 */
1067 void put_metadata(
1068 const std::string& key,
1069 tiledb_datatype_t value_type,
1070 uint32_t value_num,
1071 const void* value) {
1072 auto& ctx = ctx_.get();
1073 tiledb_ctx_t* c_ctx = ctx.ptr().get();
1074 ctx.handle_error(tiledb_array_put_metadata(
1075 c_ctx, array_.get(), key.c_str(), value_type, value_num, value));
1076 }
1077
1078 /**
1079 * It deletes a metadata key-value item from an open array. The array must

Callers 2

Calls 5

handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected