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

@ -18,42 +18,42 @@
namespace oceanbase {
namespace sql {
class ObExprUtlRawCastToRaw : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawCastToRaw(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawCastToRaw();
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
static int calc(common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx);
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawCastToRaw);
};
class ObExprUtlRawCastToVarchar2 : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawCastToVarchar2(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawCastToVarchar2();
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
static int calc(common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx);
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawCastToVarchar2);
};
class ObExprUtlRawLength : public ObFuncExprOperator {
public:
public:
explicit ObExprUtlRawLength(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawLength();
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawLength);
};
class ObRawBitwiseExprOperator : public ObExprOperator {
public:
public:
ObRawBitwiseExprOperator(common::ObIAllocator& alloc, ObExprOperatorType type, const char* name, int32_t param_num)
: ObExprOperator(alloc, type, name, param_num)
{}
@ -62,7 +62,7 @@ class ObRawBitwiseExprOperator : public ObExprOperator {
virtual int calc_result_type2(
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
protected:
protected:
enum BitOperator {
BIT_AND,
BIT_OR,
@ -74,12 +74,12 @@ class ObRawBitwiseExprOperator : public ObExprOperator {
int calc_result2_(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
common::ObCastCtx& cast_ctx, BitOperator op) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObRawBitwiseExprOperator);
};
class ObExprUtlRawBitAnd : public ObRawBitwiseExprOperator {
public:
public:
explicit ObExprUtlRawBitAnd(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawBitAnd();
virtual int calc_result_type2(
@ -87,12 +87,12 @@ class ObExprUtlRawBitAnd : public ObRawBitwiseExprOperator {
virtual int calc_result2(
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawBitAnd);
};
class ObExprUtlRawBitOr : public ObRawBitwiseExprOperator {
public:
public:
explicit ObExprUtlRawBitOr(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawBitOr();
virtual int calc_result_type2(
@ -100,12 +100,12 @@ class ObExprUtlRawBitOr : public ObRawBitwiseExprOperator {
virtual int calc_result2(
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawBitOr);
};
class ObExprUtlRawBitXor : public ObRawBitwiseExprOperator {
public:
public:
explicit ObExprUtlRawBitXor(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawBitXor();
virtual int calc_result_type2(
@ -113,35 +113,35 @@ class ObExprUtlRawBitXor : public ObRawBitwiseExprOperator {
virtual int calc_result2(
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawBitXor);
};
class ObExprUtlRawBitComplement : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawBitComplement(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawBitComplement();
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj1, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawBitComplement);
};
class ObExprUtlRawReverse : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawReverse(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawReverse();
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
static int calc(common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx);
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawReverse);
};
class ObExprUtlRawCopies : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawCopies(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawCopies();
virtual int calc_result_type2(
@ -151,12 +151,12 @@ class ObExprUtlRawCopies : public ObStringExprOperator {
virtual int calc_result2(
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawCopies);
};
class ObExprUtlRawCompare : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawCompare(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawCompare();
virtual int calc_result_typeN(
@ -165,12 +165,12 @@ class ObExprUtlRawCompare : public ObStringExprOperator {
virtual int calc_resultN(
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawCompare);
};
class ObExprUtlRawSubstr : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawSubstr(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawSubstr();
virtual int calc_result_typeN(
@ -179,12 +179,12 @@ class ObExprUtlRawSubstr : public ObStringExprOperator {
virtual int calc_resultN(
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawSubstr);
};
class ObExprUtlRawConcat : public ObStringExprOperator {
public:
public:
explicit ObExprUtlRawConcat(common::ObIAllocator& alloc);
virtual ~ObExprUtlRawConcat();
virtual int calc_result_typeN(
@ -193,7 +193,7 @@ class ObExprUtlRawConcat : public ObStringExprOperator {
virtual int calc_resultN(
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUtlRawConcat);
};