reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -34,7 +34,7 @@ class ObZoneManager;
|
||||
class ObServerManager;
|
||||
|
||||
class ObAllVirtualCluster : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllVirtualCluster()
|
||||
: inited_(false),
|
||||
zone_manager_(NULL),
|
||||
@ -53,12 +53,12 @@ class ObAllVirtualCluster : public common::ObVirtualTableProjector {
|
||||
obrpc::ObSrvRpcProxy& rpc_proxy, ObServerManager& server_manager, ObRootService& root_service);
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns, bool& full_columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
static const int64_t RPC_TIMEOOUT = 1 * 1000 * 1000; // 1s
|
||||
private:
|
||||
private:
|
||||
bool inited_;
|
||||
ObZoneManager* zone_manager_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
@ -70,7 +70,7 @@ class ObAllVirtualCluster : public common::ObVirtualTableProjector {
|
||||
ObRootService* root_service_;
|
||||
ObArenaAllocator arena_allocator_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllVirtualCluster);
|
||||
};
|
||||
} // namespace rootserver
|
||||
|
||||
@ -34,7 +34,7 @@ namespace rootserver {
|
||||
class ObServerManager;
|
||||
|
||||
class ObAllPartitionTable : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllPartitionTable();
|
||||
virtual ~ObAllPartitionTable();
|
||||
|
||||
@ -45,10 +45,10 @@ class ObAllPartitionTable : public common::ObVirtualTableProjector {
|
||||
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
virtual int get_condition(uint64_t& specific_tenant_id, uint64_t& specific_table_id);
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::schema::ObTableSchema* table, const share::ObPartitionReplica& replica,
|
||||
common::ObIArray<Column>& columns);
|
||||
bool inited_;
|
||||
@ -64,7 +64,7 @@ class ObAllPartitionTable : public common::ObVirtualTableProjector {
|
||||
share::ObIPartitionTableIterator* pt_iter_;
|
||||
ObArenaAllocator arena_allocator_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllPartitionTable);
|
||||
};
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ namespace balancer {
|
||||
class SquareIdMap;
|
||||
}
|
||||
class ObAllRebalanceMapItemStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceMapItemStat();
|
||||
virtual ~ObAllRebalanceMapItemStat();
|
||||
|
||||
@ -42,7 +42,7 @@ class ObAllRebalanceMapItemStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_table_schema(uint64_t tid);
|
||||
int get_all_tenant();
|
||||
int init_tenant_balance_stat(uint64_t tenant_id);
|
||||
@ -56,7 +56,7 @@ class ObAllRebalanceMapItemStat : public common::ObVirtualTableProjector {
|
||||
int calc_leader_balance_statistic(const common::ObZone& zone,
|
||||
const balancer::HashIndexCollection& hash_index_collection, balancer::SquareIdMap& id_map);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
|
||||
@ -29,7 +29,7 @@ namespace balancer {
|
||||
class SquareIdMap;
|
||||
}
|
||||
class ObAllRebalanceMapStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceMapStat();
|
||||
virtual ~ObAllRebalanceMapStat();
|
||||
|
||||
@ -40,7 +40,7 @@ class ObAllRebalanceMapStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_table_schema(uint64_t tid);
|
||||
int get_all_tenant();
|
||||
int init_tenant_balance_stat(uint64_t tenant_id);
|
||||
@ -48,7 +48,7 @@ class ObAllRebalanceMapStat : public common::ObVirtualTableProjector {
|
||||
int next();
|
||||
int get_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
namespace oceanbase {
|
||||
namespace rootserver {
|
||||
class ObAllRebalanceReplicaStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceReplicaStat();
|
||||
virtual ~ObAllRebalanceReplicaStat();
|
||||
|
||||
@ -27,7 +27,7 @@ class ObAllRebalanceReplicaStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllRebalanceReplicaStat);
|
||||
// function members
|
||||
@ -35,7 +35,7 @@ class ObAllRebalanceReplicaStat : public common::ObVirtualTableProjector {
|
||||
int next();
|
||||
int get_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObAllRebalanceTenantStat impl_;
|
||||
int64_t cur_partition_idx_;
|
||||
|
||||
@ -28,14 +28,14 @@ class ObRebalanceTask;
|
||||
class ObRebalanceTaskMgr;
|
||||
|
||||
class ObAllRebalanceTaskStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceTaskStat();
|
||||
virtual ~ObAllRebalanceTaskStat();
|
||||
|
||||
int init(share::schema::ObMultiVersionSchemaService& schema_service, ObRebalanceTaskMgr& rebalance_task_mgr);
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
struct Display {
|
||||
void reset();
|
||||
uint64_t tenant_id_;
|
||||
@ -60,12 +60,12 @@ class ObAllRebalanceTaskStat : public common::ObVirtualTableProjector {
|
||||
int get_full_row(const share::schema::ObTableSchema* table, const ObRebalanceTask& task_stat,
|
||||
const ObRebalanceTaskInfo& task_info, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
ObRebalanceTaskMgr* rebalance_task_mgr_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllRebalanceTaskStat);
|
||||
};
|
||||
} // end namespace rootserver
|
||||
|
||||
@ -29,7 +29,7 @@ class ObAllRebalanceUnitStat;
|
||||
class ObAllRebalanceReplicaStat;
|
||||
|
||||
class ObAllRebalanceTenantStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceTenantStat();
|
||||
virtual ~ObAllRebalanceTenantStat();
|
||||
|
||||
@ -40,7 +40,7 @@ class ObAllRebalanceTenantStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_table_schema(uint64_t tid);
|
||||
int get_all_tenant();
|
||||
int init_tenant_balance_stat(uint64_t tenant_id);
|
||||
@ -48,7 +48,7 @@ class ObAllRebalanceTenantStat : public common::ObVirtualTableProjector {
|
||||
int next();
|
||||
int get_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
|
||||
@ -20,7 +20,7 @@ namespace oceanbase {
|
||||
namespace rootserver {
|
||||
class ObRootBalancer;
|
||||
class ObAllRebalanceUnitDistributionStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceUnitDistributionStat(ObUnitManager& unit_mgr, ObILeaderCoordinator& leader_coordinator,
|
||||
ObServerManager& server_mgr, ObZoneManager& zone_mgr);
|
||||
virtual ~ObAllRebalanceUnitDistributionStat();
|
||||
@ -30,11 +30,11 @@ class ObAllRebalanceUnitDistributionStat : public common::ObVirtualTableProjecto
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::ObUnitInfo& unit_info, common::ObIArray<Column>& columns);
|
||||
int get_table_schema(uint64_t tid);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObServerBalancePlan server_balance_plan_;
|
||||
share::schema::ObSchemaGetterGuard schema_guard_;
|
||||
|
||||
@ -19,7 +19,7 @@ namespace oceanbase {
|
||||
namespace rootserver {
|
||||
class ObRootBalancer;
|
||||
class ObAllRebalanceUnitMigrateStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceUnitMigrateStat(ObUnitManager& unit_mgr, ObILeaderCoordinator& leader_coordinator,
|
||||
ObServerManager& server_mgr, ObZoneManager& zone_mgr);
|
||||
virtual ~ObAllRebalanceUnitMigrateStat();
|
||||
@ -29,11 +29,11 @@ class ObAllRebalanceUnitMigrateStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const ServerBalancePlanTask& task, common::ObIArray<Column>& columns);
|
||||
int get_table_schema(uint64_t tid);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObServerBalancePlan server_balance_plan_;
|
||||
share::schema::ObSchemaGetterGuard schema_guard_;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
namespace oceanbase {
|
||||
namespace rootserver {
|
||||
class ObAllRebalanceUnitStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllRebalanceUnitStat();
|
||||
virtual ~ObAllRebalanceUnitStat();
|
||||
|
||||
@ -27,7 +27,7 @@ class ObAllRebalanceUnitStat : public common::ObVirtualTableProjector {
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllRebalanceUnitStat);
|
||||
// function members
|
||||
@ -35,7 +35,7 @@ class ObAllRebalanceUnitStat : public common::ObVirtualTableProjector {
|
||||
int next();
|
||||
int get_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObAllRebalanceTenantStat impl_;
|
||||
int64_t cur_unit_idx_;
|
||||
|
||||
@ -42,7 +42,7 @@ namespace rootserver {
|
||||
class ObServerManager;
|
||||
|
||||
class ObAllReplicaTask : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllReplicaTask();
|
||||
virtual ~ObAllReplicaTask();
|
||||
|
||||
@ -55,10 +55,10 @@ class ObAllReplicaTask : public common::ObVirtualTableProjector {
|
||||
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
virtual int get_condition(uint64_t& specific_tenant_id);
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::schema::ObTableSchema* table, ObReplicaTask& task, common::ObIArray<Column>& columns);
|
||||
bool inited_;
|
||||
TenantBalanceStat tenant_stat_;
|
||||
@ -70,19 +70,19 @@ class ObAllReplicaTask : public common::ObVirtualTableProjector {
|
||||
ObArenaAllocator arena_allocator_;
|
||||
int64_t index_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllReplicaTask);
|
||||
};
|
||||
|
||||
class ObAllReplicaTaskI1 : public ObAllReplicaTask {
|
||||
public:
|
||||
public:
|
||||
ObAllReplicaTaskI1();
|
||||
virtual ~ObAllReplicaTaskI1();
|
||||
|
||||
protected:
|
||||
protected:
|
||||
virtual int get_condition(uint64_t& specific_tenant_id) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllReplicaTaskI1);
|
||||
};
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ class ObServerManager;
|
||||
class ObZoneManager;
|
||||
|
||||
class ObAllServerStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllServerStat();
|
||||
virtual ~ObAllServerStat();
|
||||
|
||||
@ -38,7 +38,7 @@ class ObAllServerStat : public common::ObVirtualTableProjector {
|
||||
ObServerManager& server_mgr, ObILeaderCoordinator& leader_coordinator);
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
static constexpr double EPSLISON = 0.000000001;
|
||||
static const int64_t INVALID_TOTAL_RESOURCE = 0;
|
||||
static const int64_t INVALID_ASSIGNED_PERCENT = -1;
|
||||
@ -146,7 +146,7 @@ class ObAllServerStat : public common::ObVirtualTableProjector {
|
||||
TO_STRING_KV(K_(server_load), K_(cpu_assigned_percent), K_(disk_assigned_percent), K_(unit_num),
|
||||
K_(migrating_unit_num), K_(merged_version), K_(leader_count));
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ServerStat);
|
||||
};
|
||||
|
||||
@ -158,7 +158,7 @@ class ObAllServerStat : public common::ObVirtualTableProjector {
|
||||
int get_full_row(
|
||||
const share::schema::ObTableSchema* table, ServerStat& server_stat, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
ObUnitManager* unit_mgr_;
|
||||
|
||||
@ -31,14 +31,14 @@ class ObTableSchema;
|
||||
} // namespace share
|
||||
namespace rootserver {
|
||||
class ObAllTenantStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllTenantStat();
|
||||
virtual ~ObAllTenantStat();
|
||||
|
||||
int init(share::schema::ObMultiVersionSchemaService& schema_service, common::ObMySQLProxy& proxy);
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
struct PartitionStat {
|
||||
uint64_t table_id_;
|
||||
int64_t partition_id_;
|
||||
@ -125,12 +125,12 @@ class ObAllTenantStat : public common::ObVirtualTableProjector {
|
||||
int get_full_row(
|
||||
const share::schema::ObTableSchema* table, const TenantStat& tenant_stat, common::ObIArray<Column>& columns);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool inited_;
|
||||
share::schema::ObMultiVersionSchemaService* schema_service_;
|
||||
common::ObMySQLProxy* proxy_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllTenantStat);
|
||||
};
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ class ObMultiVersionSchemaService;
|
||||
} // namespace share
|
||||
namespace rootserver {
|
||||
class ObAllVirtualLeaderStat : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObAllVirtualLeaderStat()
|
||||
: schema_guard_(),
|
||||
all_tenants_(),
|
||||
@ -44,13 +44,13 @@ class ObAllVirtualLeaderStat : public common::ObVirtualTableProjector {
|
||||
virtual ~ObAllVirtualLeaderStat()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
int init(
|
||||
rootserver::ObLeaderCoordinator& leader_coordinator, share::schema::ObMultiVersionSchemaService& schema_service);
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
// get all_virtual_leader_stat's table_schema
|
||||
int get_table_schema(uint64_t table_id);
|
||||
int get_all_tenant();
|
||||
@ -66,9 +66,9 @@ class ObAllVirtualLeaderStat : public common::ObVirtualTableProjector {
|
||||
int construct_tenant_partition();
|
||||
int do_construct_tenant_partition(uint64_t tenant_id);
|
||||
|
||||
private:
|
||||
private:
|
||||
static const int64_t MAX_COLUMN_NUM = 32; // all_virtual_leader_stat column number now will not be greater than 32
|
||||
private:
|
||||
private:
|
||||
share::schema::ObSchemaGetterGuard schema_guard_;
|
||||
common::ObArray<uint64_t> all_tenants_;
|
||||
// cur_tenant_idx_ is current idx of all_tenants_;
|
||||
@ -88,7 +88,7 @@ class ObAllVirtualLeaderStat : public common::ObVirtualTableProjector {
|
||||
common::ObArenaAllocator inner_allocator_;
|
||||
bool is_inited_;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy and assign
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllVirtualLeaderStat);
|
||||
};
|
||||
|
||||
@ -20,7 +20,7 @@ namespace oceanbase {
|
||||
namespace rootserver {
|
||||
class ObRootService;
|
||||
class ObAllVirtualRootserviceStat : public common::ObSimpleVirtualTableIterator {
|
||||
public:
|
||||
public:
|
||||
ObAllVirtualRootserviceStat();
|
||||
virtual ~ObAllVirtualRootserviceStat()
|
||||
{}
|
||||
@ -29,13 +29,13 @@ class ObAllVirtualRootserviceStat : public common::ObSimpleVirtualTableIterator
|
||||
virtual int init_all_data() override;
|
||||
virtual int get_next_full_row(const share::schema::ObTableSchema* table, common::ObIArray<Column>& columns) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObRootService* rootservice_;
|
||||
common::ObDiagnoseTenantInfo sys_tenant_di_;
|
||||
int32_t stat_iter_;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObAllVirtualRootserviceStat);
|
||||
};
|
||||
|
||||
@ -27,7 +27,7 @@ class ObColumnSchemaV2;
|
||||
} // namespace share
|
||||
namespace rootserver {
|
||||
class ObCoreMetaTable : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObCoreMetaTable();
|
||||
virtual ~ObCoreMetaTable();
|
||||
|
||||
@ -35,14 +35,14 @@ class ObCoreMetaTable : public common::ObVirtualTableProjector {
|
||||
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::schema::ObTableSchema* table, const share::ObPartitionReplica& replica,
|
||||
common::ObIArray<Column>& columns);
|
||||
bool inited_;
|
||||
share::ObPartitionTableOperator* pt_operator_;
|
||||
share::schema::ObSchemaGetterGuard* schema_guard_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObCoreMetaTable);
|
||||
};
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ class ObSchemaGetterGuard;
|
||||
} // namespace share
|
||||
namespace rootserver {
|
||||
class ObVritualCoreInnerTable : public common::ObVirtualTableProjector {
|
||||
public:
|
||||
public:
|
||||
ObVritualCoreInnerTable();
|
||||
virtual ~ObVritualCoreInnerTable();
|
||||
|
||||
@ -36,7 +36,7 @@ class ObVritualCoreInnerTable : public common::ObVirtualTableProjector {
|
||||
|
||||
virtual int inner_get_next_row(common::ObNewRow*& row);
|
||||
|
||||
private:
|
||||
private:
|
||||
int get_full_row(const share::schema::ObTableSchema* table, const share::ObCoreTableProxy& core_table,
|
||||
common::ObIArray<Column>& columns);
|
||||
|
||||
@ -46,7 +46,7 @@ class ObVritualCoreInnerTable : public common::ObVirtualTableProjector {
|
||||
uint64_t table_id_;
|
||||
share::schema::ObSchemaGetterGuard* schema_guard_;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObVritualCoreInnerTable);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user