template<class C>
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 }
|