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

@ -22,7 +22,7 @@
#include "sql/engine/test_engine_util.h"
class TestSetOperatorFactory {
public:
public:
TestSetOperatorFactory()
{}
~TestSetOperatorFactory()
@ -101,7 +101,7 @@ class TestSetOperatorFactory {
return physical_plan_;
}
private:
private:
static ObPhysicalPlan physical_plan_;
static ObFakeTable fake_table1_;
static ObFakeTable fake_table2_;

View File

@ -20,7 +20,7 @@
namespace oceanbase {
namespace sql {
class SetDataGenerator : public ObPhyOperator {
public:
public:
const static int64_t ROW_ID_CELL = 0;
const static int64_t IDX_CELL = 1;
const static int64_t STR_CELL = 2;
@ -29,7 +29,7 @@ class SetDataGenerator : public ObPhyOperator {
const static int64_t INT_VARCHAR_BUF_SIZE = 10;
class Ctx : public ObPhyOperatorCtx {
public:
public:
Ctx(ObExecContext& c) : ObPhyOperatorCtx(c)
{}
virtual void destroy()
@ -168,7 +168,7 @@ class SetDataGenerator : public ObPhyOperator {
cells_[STR_CELL].set_collation_type(ObCollationType::CS_TYPE_UTF8MB4_BIN);
}
public:
public:
bool gen_varchar_cell_ = false;
int64_t row_cnt_ = 1;
bool reverse_ = false;
@ -180,7 +180,7 @@ class SetDataGenerator : public ObPhyOperator {
IdValFunc idx_val_ = [](const int64_t v) { return v; };
int iter_end_ret_ = OB_ITER_END;
private:
private:
mutable common::ObNewRow row_;
mutable common::ObObj cells_[CELL_CNT];
mutable int64_t row_id_ = 0;

View File

@ -38,7 +38,7 @@ using namespace share;
using namespace omt;
class MockSqlExpression : public ObSqlExpression {
public:
public:
MockSqlExpression(ObIAllocator& alloc) : ObSqlExpression(alloc)
{
set_item_count(10);
@ -49,10 +49,10 @@ class MockSqlExpression : public ObSqlExpression {
#define TEST_SET_DUMP_SET_HASH_AREA_SIZE(size) (set_hash_area_size(size))
class ObHashSetDumpTest : public blocksstable::TestDataFilePrepare, public ::testing::WithParamInterface<ObJoinType> {
public:
public:
enum TestAlgo { UNION = 0, INTERSECT, EXCEPT };
protected:
protected:
struct SetPlan {
explicit SetPlan(ObIAllocator& alloc) : set_op_(nullptr), left_(alloc), right_(alloc), expr_(alloc)
{}
@ -68,7 +68,7 @@ class ObHashSetDumpTest : public blocksstable::TestDataFilePrepare, public ::tes
MockSqlExpression expr_;
};
public:
public:
ObHashSetDumpTest()
: blocksstable::TestDataFilePrepare("TestDiskIR", 8 << 20, 5000),
hash_union_(alloc_),
@ -145,7 +145,7 @@ class ObHashSetDumpTest : public blocksstable::TestDataFilePrepare, public ::tes
// iterate hash join result and verify result with merge join.
void run_test(int64_t print_row_cnt = 0);
protected:
protected:
ObArenaAllocator alloc_;
ObHashUnion hash_union_;

View File

@ -27,7 +27,7 @@ using namespace oceanbase::sql;
using namespace oceanbase::observer;
class TestMergeExcept : public ObMergeExcept {
public:
public:
TestMergeExcept() : ObMergeExcept(alloc_)
{}
~TestMergeExcept()
@ -35,18 +35,18 @@ class TestMergeExcept : public ObMergeExcept {
};
class TestMergeExceptTest : public ::testing::Test {
public:
public:
TestMergeExceptTest();
virtual ~TestMergeExceptTest();
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
TestMergeExceptTest(const TestMergeExceptTest& other);
TestMergeExceptTest& operator=(const TestMergeExceptTest& other);
private:
private:
// data members
};
TestMergeExceptTest::TestMergeExceptTest()

View File

@ -26,7 +26,7 @@ using namespace oceanbase::common;
using namespace oceanbase::sql;
using namespace oceanbase::observer;
class TestMergeIntersect : public ObMergeIntersect {
public:
public:
TestMergeIntersect() : ObMergeIntersect(alloc_)
{}
virtual ~TestMergeIntersect()
@ -34,18 +34,18 @@ class TestMergeIntersect : public ObMergeIntersect {
};
class TestMergeIntersectTest : public ::testing::Test {
public:
public:
TestMergeIntersectTest();
virtual ~TestMergeIntersectTest();
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
TestMergeIntersectTest(const TestMergeIntersectTest& other);
TestMergeIntersectTest& operator=(const TestMergeIntersectTest& other);
private:
private:
// data members
};
TestMergeIntersectTest::TestMergeIntersectTest()

View File

@ -27,7 +27,7 @@ using namespace oceanbase::sql;
using namespace oceanbase::observer;
class TestMergeUnion : public ObMergeUnion {
public:
public:
TestMergeUnion() : ObMergeUnion(alloc_)
{}
virtual ~TestMergeUnion()
@ -35,19 +35,19 @@ class TestMergeUnion : public ObMergeUnion {
};
class TestMergeUnionTest : public ::testing::Test {
public:
public:
TestMergeUnionTest();
virtual ~TestMergeUnionTest();
virtual void SetUp();
virtual void TearDown();
protected:
private:
protected:
private:
// disallow copy
TestMergeUnionTest(const TestMergeUnionTest& other);
TestMergeUnionTest& operator=(const TestMergeUnionTest& other);
private:
private:
// data members
};
TestMergeUnionTest::TestMergeUnionTest()