6 #ifndef __HAS_SCHEMA_H__
7 #define __HAS_SCHEMA_H__
26 options(std::map<std::string, std::string>())
40 HasSchemaRequest(
const std::string& schemaName_,
const std::map<std::string, std::string>& options_):
47 std::map<std::string, std::string>
options;
53 template<>
struct codec_traits<gpudb::HasSchemaRequest>
63 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65 const std::vector<size_t> fo = rd->fieldOrder();
67 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
111 info(std::map<std::string, std::string>())
117 std::map<std::string, std::string>
info;
123 template<>
struct codec_traits<gpudb::HasSchemaResponse>
129 ::avro::encode(e, v.
info);
134 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
136 const std::vector<size_t> fo = rd->fieldOrder();
138 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
151 ::avro::decode(d, v.
info);
163 ::avro::decode(d, v.
info);
A set of input parameters for const.
std::map< std::string, std::string > options
HasSchemaResponse()
Constructs a HasSchemaResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > info
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 parameter values.