1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -22,7 +22,6 @@
#pragma once
#include "functor.h"
#include <utility>
@ -30,54 +29,48 @@
namespace funcexp
{
/** @brief Func_rand class
* This function is exported, so visible to FunctionColumn in dbcon.
*/
* This function is exported, so visible to FunctionColumn in dbcon.
*/
class Func_rand : public Func
{
public:
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false) {}
virtual ~Func_rand() {}
public:
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false)
{
}
virtual ~Func_rand()
{
}
double getRand();
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);
double getRand();
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp,
execplan::CalpontSystemCatalog::ColType& resultType);
int64_t getIntVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
return ((int64_t) getDoubleVal(row, fp, isNull, op_ct));
}
int64_t getIntVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
return ((int64_t)getDoubleVal(row, fp, isNull, op_ct));
}
double getDoubleVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
double getDoubleVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
long double getLongDoubleVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
long double getLongDoubleVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
return (long double)getDoubleVal(row, fp, isNull, op_ct);
}
std::string getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
return (long double)getDoubleVal(row, fp, isNull, op_ct);
}
{
return doubleToString(getDoubleVal(row, fp, isNull, op_ct));
}
std::string getStrVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
return doubleToString(getDoubleVal(row, fp, isNull, op_ct));
}
private:
uint64_t fSeed1;
uint64_t fSeed2;
bool fSeedSet;
private:
uint64_t fSeed1;
uint64_t fSeed2;
bool fSeedSet;
};
}
} // namespace funcexp