6 #ifndef __HAS_SCHEMA_H__ 7 #define __HAS_SCHEMA_H__ 24 options(std::map<std::string, std::string>())
38 HasSchemaRequest(
const std::string& schemaName_,
const std::map<std::string, std::string>& options_):
54 std::map<std::string, std::string>
options;
60 template<>
struct codec_traits<
gpudb::HasSchemaRequest>
70 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
72 const std::vector<size_t> fo = rd->fieldOrder();
74 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
114 info(std::map<std::string, std::string>())
136 std::map<std::string, std::string>
info;
142 template<>
struct codec_traits<
gpudb::HasSchemaResponse>
148 ::avro::encode(e, v.
info);
153 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155 const std::vector<size_t> fo = rd->fieldOrder();
157 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
170 ::avro::decode(d, v.
info);
182 ::avro::decode(d, v.
info);
188 #endif // __HAS_SCHEMA_H__ A set of parameters for GPUdb::hasSchema.
std::map< std::string, std::string > options
Optional parameters.
HasSchemaResponse()
Constructs a HasSchemaResponse object with default parameters.
std::string schemaName
Value of schemaName.
A set of results returned by GPUdb::hasSchema.
std::map< std::string, std::string > info
Additional information.
std::string schemaName
Name of the schema to check for existence, in root, using standard name resolution rules.
bool schemaExists
Indicates whether the schema exists or not.
HasSchemaRequest(const std::string &schemaName_, const std::map< std::string, std::string > &options_)
Constructs a HasSchemaRequest object with the specified parameters.
HasSchemaRequest()
Constructs a HasSchemaRequest object with default parameters.