Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual double AlternativeTableDataSourceTest::GetNormalizedDataByID ( String  column,
int  row 
) [inline, virtual]

Reimplemented from Impala::Application::MediaTable::TableDataSource.

Definition at line 44 of file testTableDataSourceCombinedViews.h.

References mTotalRows.

00045     {
00046         double v = row / (double)mTotalRows;
00047         if (column == "purple")
00048             return v;
00049         if (column == "orange")
00050             return 1.0 - v;
00051         if (column == "yellow") {
00052             return (row % 10) / 10.0;
00053         }
00054         return 0.0;
00055     }


Generated on Thu Jan 13 09:13:03 2011 for ImpalaSrc by  doxygen 1.5.1