OmniSciDB
0264ff685a
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
30
struct
ColumnDescriptor
{
31
int
tableId
;
32
int
columnId
;
33
std::string
columnName
;
34
std::string
sourceName
;
35
SQLTypeInfo
columnType
;
36
std::string
chunks
;
37
bool
isSystemCol
;
38
bool
isVirtualCol
;
39
std::string
virtualExpr
;
40
bool
isDeletedCol
;
41
bool
isGeoPhyCol
{
false
};
42
43
ColumnDescriptor
() : isSystemCol(false), isVirtualCol(false), isDeletedCol(false) {}
44
ColumnDescriptor
(
const
int
tableId,
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)
53
, isSystemCol(false)
54
, isVirtualCol(false)
55
, isDeletedCol(false) {}
56
ColumnDescriptor
(
const
bool
isGeoPhyCol
) :
ColumnDescriptor
() {
57
this->isGeoPhyCol =
isGeoPhyCol
;
58
}
59
};
60
61
#endif // COLUMN_DESCRIPTOR
ColumnDescriptor::virtualExpr
std::string virtualExpr
Definition:
ColumnDescriptor.h:39
ColumnDescriptor::isVirtualCol
bool isVirtualCol
Definition:
ColumnDescriptor.h:38
ColumnDescriptor::ColumnDescriptor
ColumnDescriptor(const int tableId, const int columnId, const std::string &columnName, const SQLTypeInfo columnType)
Definition:
ColumnDescriptor.h:44
ColumnDescriptor::isSystemCol
bool isSystemCol
Definition:
ColumnDescriptor.h:37
ColumnDescriptor::tableId
int tableId
Definition:
ColumnDescriptor.h:31
ColumnDescriptor::sourceName
std::string sourceName
Definition:
ColumnDescriptor.h:34
ColumnDescriptor::chunks
std::string chunks
Definition:
ColumnDescriptor.h:36
ColumnDescriptor::isDeletedCol
bool isDeletedCol
Definition:
ColumnDescriptor.h:40
ColumnDescriptor
specifies the content in-memory of a row in the column metadata table
Definition:
ColumnDescriptor.h:30
ColumnDescriptor::columnId
int columnId
Definition:
ColumnDescriptor.h:32
ColumnDescriptor::ColumnDescriptor
ColumnDescriptor(const bool isGeoPhyCol)
Definition:
ColumnDescriptor.h:56
SQLTypeInfo
Definition:
sqltypes.h:261
ColumnDescriptor::columnType
SQLTypeInfo columnType
Definition:
ColumnDescriptor.h:35
ColumnDescriptor::columnName
std::string columnName
Definition:
ColumnDescriptor.h:33
ColumnDescriptor::isGeoPhyCol
bool isGeoPhyCol
Definition:
ColumnDescriptor.h:41
ColumnDescriptor::ColumnDescriptor
ColumnDescriptor()
Definition:
ColumnDescriptor.h:43
Catalog
ColumnDescriptor.h
Generated on Tue Jan 26 2021 12:24:48 for OmniSciDB by
1.8.13