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
clang format apply
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user