storage_event.h 1.1 KB
Newer Older
羽飞's avatar
羽飞 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* Copyright (c) 2021 Xie Meiyi(xiemeiyi@hust.edu.cn) and OceanBase and/or its affiliates. All rights reserved.
miniob is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */

//
// Created by Longda on 2021/4/14.
//

#ifndef __OBSERVER_SQL_EVENT_STORAGEEVENT_H__
#define __OBSERVER_SQL_EVENT_STORAGEEVENT_H__

#include "common/seda/stage_event.h"

W
wangyunlai.wyl 已提交
20
class SQLStageEvent;
羽飞's avatar
羽飞 已提交
21 22 23

class StorageEvent : public common::StageEvent {
public:
W
wangyunlai.wyl 已提交
24 25 26
  StorageEvent(SQLStageEvent *sql_event) : sql_event_(sql_event)
  {}

羽飞's avatar
羽飞 已提交
27 28
  virtual ~StorageEvent();

W
wangyunlai.wyl 已提交
29
  SQLStageEvent *sql_event() const
30
  {
W
wangyunlai.wyl 已提交
31
    return sql_event_;
羽飞's avatar
羽飞 已提交
32
  }
33

羽飞's avatar
羽飞 已提交
34
private:
W
wangyunlai.wyl 已提交
35
  SQLStageEvent *sql_event_;
羽飞's avatar
羽飞 已提交
36 37
};

38
#endif  //__OBSERVER_SQL_EVENT_STORAGEEVENT_H__