1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -17,7 +17,6 @@
// $Id: framebound.cpp 3828 2013-05-22 17:58:14Z xlou $
//#define NDEBUG
#include <cassert>
#include <cmath>
@@ -35,62 +34,42 @@ using namespace ordering;
#include "framebound.h"
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;
ostringstream oss;
switch (fBoundType)
{
case WF__UNBOUNDED_PRECEDING:
oss << "unbound preceding";
break;
switch (fBoundType)
{
case WF__UNBOUNDED_PRECEDING: oss << "unbound preceding"; break;
case WF__UNBOUNDED_FOLLOWING:
oss << "unbound following";
break;
case WF__UNBOUNDED_FOLLOWING: oss << "unbound following"; break;
case WF__CONSTANT_PRECEDING:
oss << "constant preceding";
break;
case WF__CONSTANT_PRECEDING: oss << "constant preceding"; break;
case WF__CONSTANT_FOLLOWING:
oss << "constant following";
break;
case WF__CONSTANT_FOLLOWING: oss << "constant following"; break;
case WF__EXPRESSION_PRECEDING:
oss << "expression preceding";
break;
case WF__EXPRESSION_PRECEDING: oss << "expression preceding"; break;
case WF__EXPRESSION_FOLLOWING:
oss << "expression following";
break;
case WF__EXPRESSION_FOLLOWING: oss << "expression following"; break;
case WF__CURRENT_ROW:
default:
oss << "current row";
break;
}
case WF__CURRENT_ROW:
default: oss << "current row"; break;
}
oss << endl;
oss << endl;
return oss.str();
return oss.str();
}
} //namespace
} // namespace windowfunction
// vim:ts=4 sw=4: