You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-04 04:42:30 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -42,44 +42,52 @@ namespace windowfunction
|
||||
|
||||
int64_t FrameBound::getBound(int64_t b, int64_t e, int64_t c)
|
||||
{
|
||||
if (fBoundType == WF__UNBOUNDED_PRECEDING)
|
||||
return b;
|
||||
if (fBoundType == WF__UNBOUNDED_PRECEDING)
|
||||
return b;
|
||||
|
||||
return e;
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
const string FrameBound::toString() const
|
||||
{
|
||||
ostringstream oss;
|
||||
switch (fBoundType)
|
||||
{
|
||||
case WF__UNBOUNDED_PRECEDING:
|
||||
oss << "unbound preceding";
|
||||
break;
|
||||
case WF__UNBOUNDED_FOLLOWING:
|
||||
oss << "unbound following";
|
||||
break;
|
||||
case WF__CONSTANT_PRECEDING:
|
||||
oss << "constant preceding";
|
||||
break;
|
||||
case WF__CONSTANT_FOLLOWING:
|
||||
oss << "constant following";
|
||||
break;
|
||||
case WF__EXPRESSION_PRECEDING:
|
||||
oss << "expression preceding";
|
||||
break;
|
||||
case WF__EXPRESSION_FOLLOWING:
|
||||
oss << "expression following";
|
||||
break;
|
||||
case WF__CURRENT_ROW:
|
||||
default:
|
||||
oss << "current row";
|
||||
break;
|
||||
}
|
||||
oss << endl;
|
||||
ostringstream oss;
|
||||
|
||||
return oss.str();
|
||||
switch (fBoundType)
|
||||
{
|
||||
case WF__UNBOUNDED_PRECEDING:
|
||||
oss << "unbound preceding";
|
||||
break;
|
||||
|
||||
case WF__UNBOUNDED_FOLLOWING:
|
||||
oss << "unbound following";
|
||||
break;
|
||||
|
||||
case WF__CONSTANT_PRECEDING:
|
||||
oss << "constant preceding";
|
||||
break;
|
||||
|
||||
case WF__CONSTANT_FOLLOWING:
|
||||
oss << "constant following";
|
||||
break;
|
||||
|
||||
case WF__EXPRESSION_PRECEDING:
|
||||
oss << "expression preceding";
|
||||
break;
|
||||
|
||||
case WF__EXPRESSION_FOLLOWING:
|
||||
oss << "expression following";
|
||||
break;
|
||||
|
||||
case WF__CURRENT_ROW:
|
||||
default:
|
||||
oss << "current row";
|
||||
break;
|
||||
}
|
||||
|
||||
oss << endl;
|
||||
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user