LbmSortedAggExecStreamTest.cpp File Reference

Go to the source code of this file.

Classes

class  LbmSortedAggExecStreamTest
 Test case for LbmSortedAggExecStream. More...
class  SortedAggExecStreamGenerator
 Generates sorted (key, value count) tuples like:. More...

Functions

uint getValueCount (uint nRows, uint interval, uint value)
 Returns the number of times a value repeats over nRows.
 FENNEL_UNIT_TEST_SUITE (LbmSortedAggExecStreamTest)


Function Documentation

FENNEL_UNIT_TEST_SUITE ( LbmSortedAggExecStreamTest   ) 

uint getValueCount ( uint  nRows,
uint  interval,
uint  value 
)

Returns the number of times a value repeats over nRows.

Definition at line 77 of file LbmSortedAggExecStreamTest.cpp.

00078 {
00079     uint nCopies = nRows / interval;
00080     if (value < nRows % interval) {
00081         nCopies++;
00082     }
00083     return nCopies;
00084 }


Generated on Mon Jun 22 04:00:23 2009 for Fennel by  doxygen 1.5.1