6 #ifndef __CREATE_TABLE_EXTERNAL_H__ 7 #define __CREATE_TABLE_EXTERNAL_H__ 39 modifyColumns(std::map<std::string, std::map<std::string, std::string> >()),
41 options(std::map<std::string, std::string>())
1313 CreateTableExternalRequest(
const std::string& tableName_,
const std::vector<std::string>& filepaths_,
const std::map<std::string, std::map<std::string, std::string> >& modifyColumns_,
const std::map<std::string, std::string>& createTableOptions_,
const std::map<std::string, std::string>& options_):
2194 template<>
struct codec_traits<
gpudb::CreateTableExternalRequest>
2207 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
2209 const std::vector<size_t> fo = rd->fieldOrder();
2211 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
2270 typeProperties(std::map<std::string, std::vector<std::string> >()),
2274 info(std::map<std::string, std::string>()),
2275 files(std::vector<std::string>())
2328 std::map<std::string, std::string>
info;
2336 template<>
struct codec_traits<
gpudb::CreateTableExternalResponse>
2341 ::avro::encode(e, v.
typeId);
2348 ::avro::encode(e, v.
info);
2349 ::avro::encode(e, v.
files);
2354 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
2356 const std::vector<size_t> fo = rd->fieldOrder();
2358 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
2367 ::avro::decode(d, v.
typeId);
2395 ::avro::decode(d, v.
info);
2399 ::avro::decode(d, v.
files);
2410 ::avro::decode(d, v.
typeId);
2417 ::avro::decode(d, v.
info);
2418 ::avro::decode(d, v.
files);
2424 #endif // __CREATE_TABLE_EXTERNAL_H__ std::vector< std::string > files
std::string tableName
Value of tableName.
A set of parameters for GPUdb::createTableExternal.
std::map< std::string, std::string > info
Additional information.
int64_t countInserted
Number of records inserted into the external table.
CreateTableExternalResponse()
Constructs a CreateTableExternalResponse object with default parameters.
CreateTableExternalRequest()
Constructs a CreateTableExternalRequest object with default parameters.
std::string typeLabel
The user-defined description associated with the table's structure.
CreateTableExternalRequest(const std::string &tableName_, const std::vector< std::string > &filepaths_, const std::map< std::string, std::map< std::string, std::string > > &modifyColumns_, const std::map< std::string, std::string > &createTableOptions_, const std::map< std::string, std::string > &options_)
Constructs a CreateTableExternalRequest object with the specified parameters.
std::map< std::string, std::string > createTableOptions
Options from GPUdb::createTable, allowing the structure of the table to be defined independently of t...
int64_t countUpdated
[Not yet implemented] Number of records updated within the external table.
std::map< std::string, std::map< std::string, std::string > > modifyColumns
Not implemented yet.
A set of results returned by GPUdb::createTableExternal.
std::string typeId
ID of the currently registered table structure type for this external table.
std::string typeDefinition
A JSON string describing the columns of the created external table.
std::string tableName
Name of the table to be created, in [ schema_name. ]table_name format, using standard name resolution...
std::vector< std::string > filepaths
A list of file paths from which data will be sourced;.
std::map< std::string, std::vector< std::string > > typeProperties
A mapping of each external table column name to an array of column properties associated with that co...
std::map< std::string, std::string > options
Optional parameters.
int64_t countSkipped
Number of records skipped, when not running in abort error handling mode.