MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
sql
executor
analyze_table_executor.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
13
#include "common/sys/rc.h"
14
15
class
SQLStageEvent
;
16
class
RecordScanner
;
17
22
class
AnalyzeTableExecutor
23
{
24
public
:
25
AnalyzeTableExecutor
() =
default
;
26
virtual
~AnalyzeTableExecutor
();
27
28
RC execute(
SQLStageEvent
*sql_event);
29
30
private
:
31
RecordScanner
*scanner_ =
nullptr
;
32
};
AnalyzeTableExecutor
分析表的执行器(analyze table)
Definition:
analyze_table_executor.h:23
RecordScanner
遍历某个表中所有记录
Definition:
record_scanner.h:21
SQLStageEvent
与SessionEvent类似,也是处理SQL请求的事件,只是用在SQL的不同阶段
Definition:
sql_event.h:29
制作者
1.9.5