25 options(std::map<std::string, std::string>())
53 ShowWalRequest(
const std::vector<std::string>& tableNames_,
const std::map<std::string, std::string>& options_):
80 std::map<std::string, std::string>
options;
86 template<>
struct codec_traits<
gpudb::ShowWalRequest>
96 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
98 const std::vector<size_t> fo = rd->fieldOrder();
100 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
139 sizes(std::vector<std::vector<int64_t> >()),
142 settings(std::vector<std::map<std::string, std::string> >()),
143 info(std::map<std::string, std::string>())
155 std::vector<std::vector<int64_t> >
sizes;
170 std::vector<std::map<std::string, std::string> >
settings;
175 std::map<std::string, std::string>
info;
181 template<>
struct codec_traits<
gpudb::ShowWalResponse>
186 ::avro::encode(e, v.
sizes);
190 ::avro::encode(e, v.
info);
195 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
197 const std::vector<size_t> fo = rd->fieldOrder();
199 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208 ::avro::decode(d, v.
sizes);
224 ::avro::decode(d, v.
info);
235 ::avro::decode(d, v.
sizes);
239 ::avro::decode(d, v.
info);
245 #endif // __SHOW_WAL_H__ std::vector< std::string > tableNames
List of tables to query.
std::vector< std::vector< int64_t > > uncommitted
List of number of uncommitted entries.
ShowWalRequest()
Constructs a ShowWalRequest object with default parameters.
std::vector< std::map< std::string, std::string > > settings
List of table wal settings.
std::vector< int64_t > capacities
List of wal capacities.
A set of results returned by GPUdb::showWal.
std::map< std::string, std::string > options
Optional parameters.
ShowWalRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowWalRequest object with the specified parameters.
std::vector< std::string > tableNames
List of returned tables.
ShowWalResponse()
Constructs a ShowWalResponse object with default parameters.
A set of parameters for GPUdb::showWal.
std::map< std::string, std::string > info
Additional information.
std::vector< std::vector< int64_t > > sizes
List of current wal usage.