OmniSciDB  1dac507f6e
 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 
31  int tableId;
32  int columnId;
33  std::string columnName;
34  std::string sourceName;
36  std::string chunks;
39  std::string virtualExpr;
41  bool isGeoPhyCol{false};
42 
45  const int columnId,
46  const std::string& columnName,
47  const SQLTypeInfo columnType)
48  : tableId(tableId)
49  , columnId(columnId)
50  , columnName(columnName)
51  , sourceName(columnName)
52  , columnType(columnType)
55  , isDeletedCol(false) {}
57  this->isGeoPhyCol = isGeoPhyCol;
58  }
59 };
60 
61 #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
bool g_enable_watchdog false
Definition: Execute.cpp:71
ColumnDescriptor(const bool isGeoPhyCol)
SQLTypeInfo columnType
std::string columnName