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

Method get_metadata

tiledb/sm/cpp_api/array.h:1111–1120  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

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

Callers 3

tiledb_filestore_sizeFunction · 0.45

Calls 5

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

Tested by

no test coverage detected