OmniSciDB
a5dc49c757
|
Based on StreamInsert code but using binary columnar format for inserting a stream of rows with optional transformations from stdin to a MapD table. More...
#include "ImportExport/RowToColumnLoader.h"
#include "ImportExport/DelimitedParserUtils.h"
#include "Logger/Logger.h"
#include <chrono>
#include <thread>
Go to the source code of this file.
Functions | |
SQLTypes | get_sql_types (const TColumnType &ct) |
SQLTypeInfo | create_sql_type_info_from_col_type (const TColumnType &ct) |
SQLTypeInfo | create_array_sql_type_info_from_col_type (const TColumnType &ct) |
void | remove_partial_row (size_t failed_column, std::vector< SQLTypeInfo > column_type_info_vector, std::vector< TColumn > &input_col_vec) |
void | populate_TColumn (TStringValue ts, SQLTypeInfo column_type_info, TColumn &input_col, const import_export::CopyParams ©_params) |
Based on StreamInsert code but using binary columnar format for inserting a stream of rows with optional transformations from stdin to a MapD table.
Definition in file RowToColumnLoader.cpp.
SQLTypeInfo create_array_sql_type_info_from_col_type | ( | const TColumnType & | ct | ) |
Definition at line 108 of file RowToColumnLoader.cpp.
References get_sql_types(), kENCODING_NONE, and kNULLT.
Referenced by RowToColumnLoader::RowToColumnLoader().
SQLTypeInfo create_sql_type_info_from_col_type | ( | const TColumnType & | ct | ) |
Definition at line 82 of file RowToColumnLoader.cpp.
References get_sql_types(), kARRAY, kENCODING_NONE, and kNULLT.
Referenced by RowToColumnLoader::RowToColumnLoader().
SQLTypes get_sql_types | ( | const TColumnType & | ct | ) |
Definition at line 33 of file RowToColumnLoader.cpp.
References logger::FATAL, kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNULLT, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, and LOG.
Referenced by create_array_sql_type_info_from_col_type(), and create_sql_type_info_from_col_type().
void populate_TColumn | ( | TStringValue | ts, |
SQLTypeInfo | column_type_info, | ||
TColumn & | input_col, | ||
const import_export::CopyParams & | copy_params | ||
) |
Definition at line 184 of file RowToColumnLoader.cpp.
References Datum::bigintval, Datum::doubleval, logger::FATAL, Datum::floatval, SQLTypeInfo::get_precision(), SQLTypeInfo::get_type(), Datum::intval, kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, LOG, Datum::smallintval, StringToDatum(), and Datum::tinyintval.
Referenced by RowToColumnLoader::convert_string_to_column().
void remove_partial_row | ( | size_t | failed_column, |
std::vector< SQLTypeInfo > | column_type_info_vector, | ||
std::vector< TColumn > & | input_col_vec | ||
) |
Definition at line 136 of file RowToColumnLoader.cpp.
References logger::FATAL, kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, and LOG.
Referenced by RowToColumnLoader::convert_string_to_column().