MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getRiverCount

Function getRiverCount

src/jrd/optimizer/Optimizer.cpp:297–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

generateEquiJoinMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected