reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -20,19 +20,19 @@ namespace sql {
class ObExprRandom : public ObFuncExprOperator {
OB_UNIS_VERSION(1);
class ObExprRandomCtx : public ObExprOperatorCtx {
public:
public:
ObExprRandomCtx();
virtual ~ObExprRandomCtx();
void set_seed(uint32_t seed);
void get_next_random(double& res);
private:
private:
static const uint64_t max_value_;
uint64_t seed1_;
uint64_t seed2_;
};
public:
public:
explicit ObExprRandom(common::ObIAllocator& alloc);
virtual ~ObExprRandom();
virtual int calc_result_typeN(
@ -50,10 +50,10 @@ class ObExprRandom : public ObFuncExprOperator {
static int calc_random_expr_const_seed(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
static int calc_random_expr_nonconst_seed(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
public:
public:
virtual int assign(const ObExprOperator& other) override;
private:
private:
bool is_seed_const_;
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObExprRandom);