6 #ifndef __CREATE_TABLE_H__ 7 #define __CREATE_TABLE_H__ 67 options(std::map<std::string, std::string>())
423 CreateTableRequest(
const std::string& tableName_,
const std::string& typeId_,
const std::map<std::string, std::string>& options_):
691 template<>
struct codec_traits<
gpudb::CreateTableRequest>
696 ::avro::encode(e, v.
typeId);
702 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
704 const std::vector<size_t> fo = rd->fieldOrder();
706 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
715 ::avro::decode(d, v.
typeId);
730 ::avro::decode(d, v.
typeId);
753 info(std::map<std::string, std::string>())
782 std::map<std::string, std::string>
info;
788 template<>
struct codec_traits<
gpudb::CreateTableResponse>
793 ::avro::encode(e, v.
typeId);
795 ::avro::encode(e, v.
info);
800 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
802 const std::vector<size_t> fo = rd->fieldOrder();
804 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
813 ::avro::decode(d, v.
typeId);
821 ::avro::decode(d, v.
info);
832 ::avro::decode(d, v.
typeId);
834 ::avro::decode(d, v.
info);
840 #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
The type for the table, specified as either an existing table's numerical type ID (as returned by GPU...
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.