* It gets a metadata key-value item from an open array. The array must * be opened in READ mode, otherwise the function will error out. * * @param key The key of the metadata item to be retrieved. 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
| 1109 | * @note If the key does not exist, then `value` will be NULL. |
| 1110 | */ |
| 1111 | void get_metadata( |
| 1112 | const std::string& key, |
| 1113 | tiledb_datatype_t* value_type, |
| 1114 | uint32_t* value_num, |
| 1115 | const void** value) { |
| 1116 | auto& ctx = ctx_.get(); |
| 1117 | tiledb_ctx_t* c_ctx = ctx.ptr().get(); |
| 1118 | ctx.handle_error(tiledb_array_get_metadata( |
| 1119 | c_ctx, array_.get(), key.c_str(), value_type, value_num, value)); |
| 1120 | } |
| 1121 | |
| 1122 | /** |
| 1123 | * Checks if key exists in metadata from an open array. The array must |
no test coverage detected