| 295 | } |
| 296 | |
| 297 | unsigned getRiverCount(unsigned count, const ValueExprNode* const* eq_class) |
| 298 | { |
| 299 | // Given an sort/merge join equivalence class (vector of node pointers |
| 300 | // of representative values for rivers), return the count of rivers with values |
| 301 | |
| 302 | unsigned cnt = 0; |
| 303 | |
| 304 | for (unsigned i = 0; i < count; i++) |
| 305 | { |
| 306 | if (*eq_class++) |
| 307 | cnt++; |
| 308 | } |
| 309 | |
| 310 | return cnt; |
| 311 | } |
| 312 | |
| 313 | bool fieldEqual(const ValueExprNode* node1, const ValueExprNode* node2) |
| 314 | { |