MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
common
types.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
//
12
// Created by Wangyunlai on 2022/6/23.
13
//
14
15
#pragma once
16
17
#include <inttypes.h>
18
#include <stdint.h>
19
22
using
PageNum = int32_t;
23
26
using
SlotNum = int32_t;
27
29
using
LSN = int64_t;
30
31
#define LSN_FORMAT PRId64
32
37
enum class
ReadWriteMode
38
{
39
READ_ONLY,
40
READ_WRITE
41
};
42
47
enum class
StorageFormat
48
{
49
UNKNOWN_FORMAT = 0,
50
ROW_FORMAT,
51
PAX_FORMAT
52
};
53
58
enum class
StorageEngine
59
{
60
HEAP = 0,
61
LSM,
62
UNKNOWN_ENGINE
63
};
64
69
enum class
ExecutionMode
70
{
71
UNKNOWN_MODE = 0,
72
TUPLE_ITERATOR,
73
CHUNK_ITERATOR
74
};
75
77
using
CheckSum =
unsigned
int;
制作者
1.9.5