24 #ifndef _ROWTOCOLUMNLOADER_H_
25 #define _ROWTOCOLUMNLOADER_H_
29 #include <boost/algorithm/string.hpp>
30 #include <boost/algorithm/string/trim.hpp>
43 #include <boost/program_options.hpp>
47 #include "gen-cpp/Heavy.h"
48 #include "gen-cpp/heavy_types.h"
50 using namespace ::apache::thrift;
51 using namespace ::apache::thrift::protocol;
52 using namespace ::apache::thrift::transport;
57 const std::string& user_name,
58 const std::string& passwd,
59 const std::string& db_name,
60 const std::string& table_name);
91 #endif // _ROWTOCOLUMNLOADER_H_
TRowDescriptor get_row_descriptor()
std::string print_row_with_delim(std::vector< TStringValue > row, const import_export::CopyParams ©_params)
Constants for Builtin SQL Types supported by HEAVY.AI.
std::vector< SQLTypeInfo > column_type_info_
std::shared_ptr< HeavyClient > client_
void do_load(int &nrows, int &nskipped, import_export::CopyParams copy_params)
std::vector< TColumn > input_columns_
std::vector< SQLTypeInfo > array_column_type_info_
RowToColumnLoader(const ThriftClientConnection &conn_details, const std::string &user_name, const std::string &passwd, const std::string &db_name, const std::string &table_name)
bool convert_string_to_column(std::vector< TStringValue > row, const import_export::CopyParams ©_params)
void wait_disconnect_reconnect_retry(size_t tries, import_export::CopyParams copy_params)
void createConnection(const ThriftClientConnection &con)
ThriftClientConnection conn_details_