6 #ifndef __HAS_TABLE_H__ 7 #define __HAS_TABLE_H__ 24 options(std::map<std::string, std::string>())
39 HasTableRequest(
const std::string& tableName_,
const std::map<std::string, std::string>& options_):
56 std::map<std::string, std::string>
options;
62 template<>
struct codec_traits<
gpudb::HasTableRequest>
72 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
74 const std::vector<size_t> fo = rd->fieldOrder();
76 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116 info(std::map<std::string, std::string>())
138 std::map<std::string, std::string>
info;
144 template<>
struct codec_traits<
gpudb::HasTableResponse>
150 ::avro::encode(e, v.
info);
155 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
157 const std::vector<size_t> fo = rd->fieldOrder();
159 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
172 ::avro::decode(d, v.
info);
184 ::avro::decode(d, v.
info);
190 #endif // __HAS_TABLE_H__ std::string tableName
Value of tableName.
A set of parameters for GPUdb::hasTable.
std::map< std::string, std::string > options
Optional parameters.
HasTableRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a HasTableRequest object with the specified parameters.
bool tableExists
Indicates whether the table exists or not.
std::string tableName
Name of the table to check for existence, in [ schema_name.
HasTableRequest()
Constructs a HasTableRequest object with default parameters.
HasTableResponse()
Constructs a HasTableResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::hasTable.