You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -55,39 +55,40 @@ namespace windowfunction
|
||||
|
||||
boost::shared_ptr<WindowFunctionType> WF_row_number::makeFunction(int id, const string& name, int ct)
|
||||
{
|
||||
boost::shared_ptr<WindowFunctionType> func(new WF_row_number(id, name));
|
||||
return func;
|
||||
boost::shared_ptr<WindowFunctionType> func(new WF_row_number(id, name));
|
||||
return func;
|
||||
}
|
||||
|
||||
|
||||
WindowFunctionType* WF_row_number::clone() const
|
||||
{
|
||||
return new WF_row_number(*this);
|
||||
return new WF_row_number(*this);
|
||||
}
|
||||
|
||||
|
||||
void WF_row_number::resetData()
|
||||
{
|
||||
fRowNumber= 0;
|
||||
fRowNumber = 0;
|
||||
|
||||
WindowFunctionType::resetData();
|
||||
WindowFunctionType::resetData();
|
||||
}
|
||||
|
||||
|
||||
void WF_row_number::operator()(int64_t b, int64_t e, int64_t c)
|
||||
{
|
||||
b = fPartition.first;
|
||||
e = fPartition.second;
|
||||
for (c = b; c <= e; c++)
|
||||
{
|
||||
if (c % 1000 == 0 && fStep->cancelled())
|
||||
break;
|
||||
b = fPartition.first;
|
||||
e = fPartition.second;
|
||||
|
||||
fRow.setData(getPointer(fRowData->at(c)));
|
||||
fRowNumber++;
|
||||
for (c = b; c <= e; c++)
|
||||
{
|
||||
if (c % 1000 == 0 && fStep->cancelled())
|
||||
break;
|
||||
|
||||
setIntValue(fFieldIndex[0], fRowNumber);
|
||||
}
|
||||
fRow.setData(getPointer(fRowData->at(c)));
|
||||
fRowNumber++;
|
||||
|
||||
setIntValue(fFieldIndex[0], fRowNumber);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user