MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
sql
expr
tuple_cell.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/7.
13
//
14
15
#pragma once
16
17
#include <iostream>
18
#include "storage/table/table.h"
19
#include "storage/field/field_meta.h"
20
21
class
TupleCellSpec
22
{
23
public
:
24
TupleCellSpec
(
const
char
*table_name,
const
char
*field_name,
const
char
*alias =
nullptr
);
25
TupleCellSpec
(
const
char
*alias);
26
27
const
char
*table_name()
const
28
{
29
return
table_name_.c_str();
30
}
31
const
char
*field_name()
const
32
{
33
return
field_name_.c_str();
34
}
35
const
char
*alias()
const
36
{
37
return
alias_.c_str();
38
}
39
40
private
:
41
std::string table_name_;
42
std::string field_name_;
43
std::string alias_;
44
};
TupleCellSpec
Definition:
tuple_cell.h:22
制作者
1.9.5