6 #ifndef __SHOW_FILES_H__
7 #define __SHOW_FILES_H__
27 paths(std::vector<std::string>()),
28 options(std::map<std::string, std::string>())
46 ShowFilesRequest(
const std::vector<std::string>& paths_,
const std::map<std::string, std::string>& options_):
53 std::map<std::string, std::string>
options;
59 template<>
struct codec_traits<gpudb::ShowFilesRequest>
63 ::avro::encode(e, v.
paths);
69 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
71 const std::vector<size_t> fo = rd->fieldOrder();
73 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
78 ::avro::decode(d, v.
paths);
92 ::avro::decode(d, v.
paths);
118 sizes(std::vector<int64_t>()),
119 users(std::vector<std::string>()),
121 info(std::map<std::string, std::string>())
129 std::map<std::string, std::string>
info;
135 template<>
struct codec_traits<gpudb::ShowFilesResponse>
140 ::avro::encode(e, v.
sizes);
141 ::avro::encode(e, v.
users);
143 ::avro::encode(e, v.
info);
148 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
150 const std::vector<size_t> fo = rd->fieldOrder();
152 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
161 ::avro::decode(d, v.
sizes);
165 ::avro::decode(d, v.
users);
173 ::avro::decode(d, v.
info);
184 ::avro::decode(d, v.
sizes);
185 ::avro::decode(d, v.
users);
187 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
ShowFilesResponse()
Constructs a ShowFilesResponse object with default parameter values.
std::map< std::string, std::string > options
std::vector< int64_t > sizes
A set of output parameters for const.
std::vector< std::string > paths
std::vector< std::string > users
A set of input parameters for const.
std::vector< std::string > fileNames
ShowFilesRequest(const std::vector< std::string > &paths_, const std::map< std::string, std::string > &options_)
Constructs a ShowFilesRequest object with the specified parameters.
ShowFilesRequest()
Constructs a ShowFilesRequest object with default parameter values.
std::vector< int64_t > creationTimes