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

Method data_protocol

tiledb/sm/cpp_api/context.h:246–251  ·  view source on GitHub ↗

* Returns the data protocol version for the given URI. * * **Example:** * @code{.cpp} * tiledb::Context ctx; * auto data_protocol = ctx.data_protocol("tiledb://namespace/array"); * @endcode * * @param uri The URI to check. * @return The data protocol version. */

Source from the content-addressed store, hash-verified

244 * @return The data protocol version.
245 */
246 DataProtocol data_protocol(const std::string& uri) const {
247 tiledb_data_protocol_t protocol;
248 handle_error(
249 tiledb_ctx_get_data_protocol(ctx_.get(), uri.c_str(), &protocol));
250 return static_cast<DataProtocol>(protocol);
251 }
252
253 /** Returns a JSON-formatted string of the stats. */
254 std::string stats() {

Callers 1

unit-ctx.ccFile · 0.80

Calls 4

handle_errorFunction · 0.85
c_strMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected