#include <gpudb/Type.hpp>
|
| Column (const std::string &name, const ColumnType type, const std::string &property1="", const std::string &property2="", const std::string &property3="") |
|
| Column (const std::string &name, const ColumnType type, const std::vector< std::string > &properties) |
|
const std::string & | getName () const |
|
ColumnType | getType () const |
|
std::string | getTypeName () const |
|
bool | isNullable () const |
|
const std::vector< std::string > & | getProperties () const |
|
bool | hasProperty (std::string property) const |
|
bool | isColumnCompatible (const Column &other, bool check_query_compatibility=false) const |
| Check if the given column is compatible with this column (checks name, primitive types and type-related properties, including nullability). More...
|
|
Definition at line 20 of file Type.hpp.
Enumerator |
---|
BYTES |
|
DOUBLE |
|
FLOAT |
|
INT |
|
LONG |
|
STRING |
|
Definition at line 23 of file Type.hpp.
gpudb::Type::Column::Column |
( |
const std::string & |
name, |
|
|
const ColumnType |
type, |
|
|
const std::string & |
property1 = "" , |
|
|
const std::string & |
property2 = "" , |
|
|
const std::string & |
property3 = "" |
|
) |
| |
gpudb::Type::Column::Column |
( |
const std::string & |
name, |
|
|
const ColumnType |
type, |
|
|
const std::vector< std::string > & |
properties |
|
) |
| |
const std::string& gpudb::Type::Column::getName |
( |
| ) |
const |
const std::vector<std::string>& gpudb::Type::Column::getProperties |
( |
| ) |
const |
std::string gpudb::Type::Column::getTypeName |
( |
| ) |
const |
bool gpudb::Type::Column::hasProperty |
( |
std::string |
property | ) |
const |
bool gpudb::Type::Column::isColumnCompatible |
( |
const Column & |
other, |
|
|
bool |
check_query_compatibility = false |
|
) |
| const |
Check if the given column is compatible with this column (checks name, primitive types and type-related properties, including nullability).
By default, does not check query compatibility (e.g. 'data', 'disk_optimized', 'store_only', and 'text_search'.), but will if specified.
bool gpudb::Type::Column::isNullable |
( |
| ) |
const |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Column & |
column |
|
) |
| |
|
friend |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
Column & |
column |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: