6 #ifndef __COLLECT_STATISTICS_H__ 7 #define __COLLECT_STATISTICS_H__ 27 options(std::map<std::string, std::string>())
46 CollectStatisticsRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const std::map<std::string, std::string>& options_):
69 std::map<std::string, std::string>
options;
75 template<>
struct codec_traits<
gpudb::CollectStatisticsRequest>
86 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
88 const std::vector<size_t> fo = rd->fieldOrder();
90 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
137 info(std::map<std::string, std::string>())
156 std::map<std::string, std::string>
info;
162 template<>
struct codec_traits<
gpudb::CollectStatisticsResponse>
168 ::avro::encode(e, v.
info);
173 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
175 const std::vector<size_t> fo = rd->fieldOrder();
177 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
190 ::avro::decode(d, v.
info);
202 ::avro::decode(d, v.
info);
208 #endif // __COLLECT_STATISTICS_H__
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::collectStatistics.
std::vector< std::string > columnNames
Value of columnNames.
CollectStatisticsRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const std::map< std::string, std::string > &options_)
Constructs a CollectStatisticsRequest object with the specified parameters.
std::string tableName
Name of a table, in [ schema_name. ]table_name format, using standard name resolution rules.
A set of parameters for GPUdb::collectStatistics.
CollectStatisticsRequest()
Constructs a CollectStatisticsRequest object with default parameters.
CollectStatisticsResponse()
Constructs a CollectStatisticsResponse object with default parameters.
std::string tableName
Value of tableName.
std::vector< std::string > columnNames
List of one or more column names in tableName for which to collect statistics (cardinality,...
std::map< std::string, std::string > options
Optional parameters.