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

Method open

tiledb/sm/cpp_api/array.h:409–417  ·  view source on GitHub ↗

* @brief Opens the array. The array is opened using a query type as input. * * This is to indicate that queries created for this `Array` * object will inherit the query type. In other words, `Array` * objects are opened to receive only one type of queries. * They can always be closed and be re-opened with another query type. * Also there may be many different `Array` * objects

Source from the content-addressed store, hash-verified

407 * @throws TileDBError if the array is already open or other error occurred.
408 */
409 void open(tiledb_query_type_t query_type) {
410 auto& ctx = ctx_.get();
411 tiledb_ctx_t* c_ctx = ctx.ptr().get();
412 ctx.handle_error(tiledb_array_open(c_ctx, array_.get(), query_type));
413 tiledb_array_schema_t* array_schema;
414 ctx.handle_error(
415 tiledb_array_get_schema(c_ctx, array_.get(), &array_schema));
416 schema_ = ArraySchema(ctx, array_schema);
417 }
418
419 // clang-format off
420 /**

Callers

nothing calls this directly

Calls 11

tiledb_array_openFunction · 0.85
tiledb_array_get_schemaFunction · 0.85
tiledb_array_set_configFunction · 0.85
handle_errorMethod · 0.80
ArraySchemaClass · 0.70
getMethod · 0.45
ptrMethod · 0.45
configMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected