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

Method set_param

tiledb/sm/cpp_api/profile_experimental.h:188–199  ·  view source on GitHub ↗

Sets a parameter in the profile. */

Source from the content-addressed store, hash-verified

186
187 /** Sets a parameter in the profile. */
188 void set_param(const std::string& param, const std::string& value) {
189 tiledb_error_t* capi_error = nullptr;
190 int rc = tiledb_profile_set_param(
191 profile_.get(), param.c_str(), value.c_str(), &capi_error);
192 if (rc != TILEDB_OK) {
193 const char* msg_cstr;
194 tiledb_error_message(capi_error, &msg_cstr);
195 std::string msg = msg_cstr;
196 tiledb_error_free(&capi_error);
197 throw ProfileException(msg);
198 }
199 }
200
201 /** Retrieves a parameter value from the profile. */
202 std::optional<std::string> get_param(const std::string& param) const {

Callers 1

unit_config.ccFile · 0.45

Calls 6

tiledb_profile_set_paramFunction · 0.85
tiledb_error_messageFunction · 0.85
tiledb_error_freeFunction · 0.85
ProfileExceptionClass · 0.85
c_strMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected