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

Method get_enumeration

tiledb/sm/cpp_api/array_experimental.h:53–59  ·  view source on GitHub ↗

* Get the Enumeration from the attribute with name `attr_name`. * * @param ctx The context to use. * @param array The array containing the attribute. * @param attr_name The name of the attribute to get the enumeration from. * @return Enumeration The enumeration. */

Source from the content-addressed store, hash-verified

51 * @return Enumeration The enumeration.
52 */
53 static Enumeration get_enumeration(
54 const Context& ctx, const Array& array, const std::string& attr_name) {
55 tiledb_enumeration_t* enmr;
56 ctx.handle_error(tiledb_array_get_enumeration(
57 ctx.ptr().get(), array.ptr().get(), attr_name.c_str(), &enmr));
58 return Enumeration(ctx, enmr);
59 }
60
61 /**
62 * Load all enumerations for the array's latest array schema.

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected