OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ColumnDescriptor.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef COLUMN_DESCRIPTOR_H
18 #define COLUMN_DESCRIPTOR_H
19 
20 #include <cassert>
21 #include <string>
22 #include "../Shared/sqltypes.h"
23 #include "../Shared/toString.h"
24 
32  int tableId;
33  int columnId;
34  std::string columnName;
35  std::string sourceName;
37  std::string chunks;
40  std::string virtualExpr;
42  bool isGeoPhyCol{false};
43 
46  const int columnId,
47  const std::string& columnName,
48  const SQLTypeInfo columnType)
49  : tableId(tableId)
50  , columnId(columnId)
51  , columnName(columnName)
52  , sourceName(columnName)
53  , columnType(columnType)
56  , isDeletedCol(false) {}
58  this->isGeoPhyCol = isGeoPhyCol;
59  }
60 
61  std::string toString() const {
62  return ::typeName(this) + "(tableId=" + ::toString(tableId) +
63  ", columnId=" + ::toString(columnId) +
64  ", columnName=" + ::toString(columnName) +
65  ", columnType=" + ::toString(columnType) + ")";
66  }
67 };
68 
69 #endif // COLUMN_DESCRIPTOR
std::string virtualExpr
ColumnDescriptor(const int tableId, const int columnId, const std::string &columnName, const SQLTypeInfo columnType)
std::string sourceName
std::string chunks
specifies the content in-memory of a row in the column metadata table
std::string typeName(const T *v)
Definition: toString.h:82
bool g_enable_watchdog false
Definition: Execute.cpp:76
ColumnDescriptor(const bool isGeoPhyCol)
SQLTypeInfo columnType
std::string columnName
std::string toString() const