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

Method ArraySchema

tiledb/sm/cpp_api/array_schema.h:110–115  ·  view source on GitHub ↗

* Creates a new array schema. * * **Example:** * @code{.cpp} * tiledb::Context ctx; * tiledb::ArraySchema schema(ctx.ptr().get(), TILEDB_SPARSE); * @endcode * * @param ctx TileDB context * @param type Array type, sparse or dense. */

Source from the content-addressed store, hash-verified

108 * @param type Array type, sparse or dense.
109 */
110 explicit ArraySchema(const Context& ctx, tiledb_array_type_t type)
111 : Schema(ctx) {
112 tiledb_array_schema_t* schema;
113 ctx.handle_error(tiledb_array_schema_alloc(ctx.ptr().get(), type, &schema));
114 schema_ = std::shared_ptr<tiledb_array_schema_t>(schema, deleter_);
115 }
116
117 /**
118 * Loads the schema of an existing array.

Callers

nothing calls this directly

Calls 6

tiledb_array_schema_loadFunction · 0.85
handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected