You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
clang format apply
This commit is contained in:
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user