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
Reformat all code to coding standard
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user