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

template<class C>
bool Impala::Core::Column::IsSortedDescending ( C *  col,
int  nrElem 
) [inline]

Check whether column is sorted in descending order.

Definition at line 42 of file IsSorted.h.

References ILOG_ERROR, and ILOG_VAR.

00043 {
00044     ILOG_VAR(Impala.Core.Column.IsSortedDescending);
00045     if (nrElem > col->Capacity())
00046     {
00047         ILOG_ERROR("nrElem larger than capacity");
00048         return false;
00049     }
00050 
00051     for (int i=0 ; i<nrElem-1 ; i++)
00052         if (col->Get(i) < col->Get(i+1))
00053             return false;
00054     return true;
00055 }


Generated on Fri Mar 19 11:06:12 2010 for ImpalaSrc by  doxygen 1.5.1