size_t Join::getTotalRowCount() const { size_t res = 0; if (type == Type::CROSS) { for (const auto & block : blocks) res += block.rows(); } else { res += getTotalRowCountImpl(maps_any, type); res += getTotalRowCountImpl(maps_all, type); res += getTotalRowCountImpl(maps_any_full, type); res += getTotalRowCountImpl(maps_all_full, type); } return res; }
size_t Join::getTotalRowCount() const { size_t res = 0; if (type == Type::CROSS) { for (const auto & block : blocks) res += block.rows(); } else { dispatch([&](auto, auto, auto & map) { res += getTotalRowCountImpl(map, type); }); } return res; }