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

Method cell_num

tiledb/sm/subarray/subarray.cc:741–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741uint64_t Subarray::cell_num() const {
742 const auto& array_schema = array_->array_schema_latest();
743 unsigned dim_num = array_schema.dim_num();
744 uint64_t ret = 1;
745 for (unsigned d = 0; d < dim_num; ++d) {
746 auto dim{array_schema.dimension_ptr(d)};
747 uint64_t num = 0;
748 auto& range_subset = range_subset_[d];
749 for (uint64_t index = 0; index < range_subset.num_ranges(); ++index)
750 num += dim->domain_range(range_subset[index]);
751 ret = utils::math::safe_mul(ret, num);
752 }
753
754 return ret;
755}
756
757uint64_t Subarray::cell_num(uint64_t range_idx) const {
758 uint64_t cell_num = 1, range_cell_num;

Callers 9

to_record_batchFunction · 0.45
init_coord_tileFunction · 0.45
init_attr_tileFunction · 0.45
unit-Subarray.ccFile · 0.45
get_fragment_infoFunction · 0.45

Calls 9

safe_mulFunction · 0.85
array_schema_latestMethod · 0.80
num_rangesMethod · 0.80
dim_numMethod · 0.45
dimension_ptrMethod · 0.45
domain_rangeMethod · 0.45
domainMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected