1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -35,34 +35,41 @@ namespace funcexp
class Func_rand : public Func
{
public:
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false){}
virtual ~Func_rand() {}
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false) {}
virtual ~Func_rand() {}
double getRand();
void seedSet(bool seedSet) { fSeedSet = seedSet; }
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);
double getRand();
void seedSet(bool seedSet)
{
fSeedSet = seedSet;
}
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);
std::string getStrVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& 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;
uint64_t fSeed1;
uint64_t fSeed2;
bool fSeedSet;
};