6 #ifndef __CREATE_TABLE_H__ 7 #define __CREATE_TABLE_H__ 39 options(std::map<std::string, std::string>())
403 CreateTableRequest(
const std::string& tableName_,
const std::string& typeId_,
const std::map<std::string, std::string>& options_):
676 template<>
struct codec_traits<
gpudb::CreateTableRequest>
681 ::avro::encode(e, v.
typeId);
687 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
689 const std::vector<size_t> fo = rd->fieldOrder();
691 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
700 ::avro::decode(d, v.
typeId);
715 ::avro::decode(d, v.
typeId);
738 info(std::map<std::string, std::string>())
767 std::map<std::string, std::string>
info;
773 template<>
struct codec_traits<
gpudb::CreateTableResponse>
778 ::avro::encode(e, v.
typeId);
780 ::avro::encode(e, v.
info);
785 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
787 const std::vector<size_t> fo = rd->fieldOrder();
789 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
798 ::avro::decode(d, v.
typeId);
806 ::avro::decode(d, v.
info);
817 ::avro::decode(d, v.
typeId);
819 ::avro::decode(d, v.
info);
825 #endif // __CREATE_TABLE_H__ std::string tableName
Name of the table to be created, in [ schema_name. ]table_name format, using standard name resolution...
std::string typeId
Value of typeId.
std::string tableName
Value of tableName.
std::map< std::string, std::string > info
Additional information.
std::string typeId
ID of a currently registered type.
CreateTableRequest()
Constructs a CreateTableRequest object with default parameters.
bool isCollection
[DEPRECATED–this will always return false] Indicates if the created entity is a schema.
A set of parameters for GPUdb::createTable.
CreateTableRequest(const std::string &tableName_, const std::string &typeId_, const std::map< std::string, std::string > &options_)
Constructs a CreateTableRequest object with the specified parameters.
CreateTableResponse()
Constructs a CreateTableResponse object with default parameters.
A set of results returned by GPUdb::createTable.
std::map< std::string, std::string > options
Optional parameters.