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

Method attribute

tiledb/sm/cpp_api/array_schema.h:531–537  ·  view source on GitHub ↗

* Get a copy of an Attribute in the schema by name. * * @param name Name of attribute * @return Attribute */

Source from the content-addressed store, hash-verified

529 * @return Attribute
530 */
531 Attribute attribute(const std::string& name) const override {
532 auto& ctx = ctx_.get();
533 tiledb_attribute_t* attr;
534 ctx.handle_error(tiledb_array_schema_get_attribute_from_name(
535 ctx.ptr().get(), schema_.get(), name.c_str(), &attr));
536 return Attribute(ctx, attr);
537 }
538
539 /** Returns the number of attributes in the schema. **/
540 unsigned attribute_num() const override {

Callers 3

QueryExperimentalClass · 0.45
tiledb_dt_infoFunction · 0.45

Calls 7

handle_errorMethod · 0.80
c_strMethod · 0.80
AttributeClass · 0.70
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected