6 #ifndef __FILTER_BY_VALUE_H__
7 #define __FILTER_BY_VALUE_H__
41 options(std::map<std::string, std::string>())
74 FilterByValueRequest(
const std::string& tableName_,
const std::string& viewName_,
const bool isString_,
const double value_,
const std::string& valueStr_,
const std::string& columnName_,
const std::map<std::string, std::string>& options_):
91 std::map<std::string, std::string>
options;
97 template<>
struct codec_traits<gpudb::FilterByValueRequest>
104 ::avro::encode(e, v.
value);
112 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114 const std::vector<size_t> fo = rd->fieldOrder();
116 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
133 ::avro::decode(d, v.
value);
158 ::avro::decode(d, v.
value);
194 info(std::map<std::string, std::string>())
199 std::map<std::string, std::string>
info;
205 template<>
struct codec_traits<gpudb::FilterByValueResponse>
209 ::avro::encode(e, v.
count);
210 ::avro::encode(e, v.
info);
215 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
217 const std::vector<size_t> fo = rd->fieldOrder();
219 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
224 ::avro::decode(d, v.
count);
228 ::avro::decode(d, v.
info);
238 ::avro::decode(d, v.
count);
239 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
FilterByValueRequest(const std::string &tableName_, const std::string &viewName_, const bool isString_, const double value_, const std::string &valueStr_, const std::string &columnName_, const std::map< std::string, std::string > &options_)
Constructs a FilterByValueRequest object with the specified parameters.
std::map< std::string, std::string > options
A set of output parameters for const.
A set of input parameters for const.
FilterByValueRequest()
Constructs a FilterByValueRequest object with default parameter values.
FilterByValueResponse()
Constructs a FilterByValueResponse object with default parameter values.