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

Method range_num

tiledb/sm/cpp_api/subarray.h:423–429  ·  view source on GitHub ↗

* Retrieves the number of ranges for a given dimension index. * * **Example:** * * @code{.cpp} * unsigned dim_idx = 0; * uint64_t range_num = subarray.range_num(dim_idx); * @endcode * * @param dim_idx The dimension index. * @return The number of ranges. */

Source from the content-addressed store, hash-verified

421 * @return The number of ranges.
422 */
423 uint64_t range_num(unsigned dim_idx) const {
424 auto& ctx = ctx_.get();
425 uint64_t range_num;
426 ctx.handle_error(tiledb_subarray_get_range_num(
427 ctx.ptr().get(), subarray_.get(), dim_idx, &range_num));
428 return range_num;
429 }
430
431 /**
432 * Retrieves the number of ranges for a given dimension name.

Callers

nothing calls this directly

Calls 6

handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected