MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
catalog
table_stats.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
#pragma once
12
21
class
TableStats
22
{
23
public
:
24
explicit
TableStats
(
int
row_nums) : row_nums(row_nums) {}
25
26
TableStats
() =
default
;
27
28
TableStats
(
const
TableStats
&other) { row_nums = other.row_nums; }
29
30
TableStats
&operator=(
const
TableStats
&other)
31
{
32
row_nums = other.row_nums;
33
return
*
this
;
34
}
35
36
~TableStats
() =
default
;
37
38
int
row_nums = 0;
39
};
TableStats
Represents statistics related to a table.
Definition:
table_stats.h:22
制作者
1.9.5