6 #ifndef __SHOW_TABLE_H__ 7 #define __SHOW_TABLE_H__ 51 options(std::map<std::string, std::string>())
194 ShowTableRequest(
const std::string& tableName_,
const std::map<std::string, std::string>& options_):
309 template<>
struct codec_traits<
gpudb::ShowTableRequest>
319 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
321 const std::vector<size_t> fo = rd->fieldOrder();
323 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
364 typeIds(std::vector<std::string>()),
367 properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
368 additionalInfo(std::vector<std::map<std::string, std::string> >()),
369 sizes(std::vector<int64_t>()),
374 info(std::map<std::string, std::string>())
444 std::vector<std::map<std::string, std::vector<std::string> > >
properties;
715 std::map<std::string, std::string>
info;
721 template<>
struct codec_traits<
gpudb::ShowTableResponse>
733 ::avro::encode(e, v.
sizes);
738 ::avro::encode(e, v.
info);
743 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
745 const std::vector<size_t> fo = rd->fieldOrder();
747 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
784 ::avro::decode(d, v.
sizes);
804 ::avro::decode(d, v.
info);
822 ::avro::decode(d, v.
sizes);
827 ::avro::decode(d, v.
info);
833 #endif // __SHOW_TABLE_H__ ShowTableRequest()
Constructs a ShowTableRequest object with default parameters.
std::vector< double > joinSizes
If get_sizes is true, an array containing the number of unfiltered records in the cross product of th...
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in tableNames.
std::vector< std::string > typeLabels
Type labels of the respective tables in tableNames.
std::vector< int64_t > fullSizes
If get_sizes is true, an array containing the number of records of each corresponding table in tableN...
std::string tableName
Value of tableName.
std::map< std::string, std::string > info
Additional information.
ShowTableRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a ShowTableRequest object with the specified parameters.
int64_t totalSize
If get_sizes is true, the sum of the elements of sizes.
std::vector< std::string > typeSchemas
Type schemas of the respective tables in tableNames.
std::vector< std::map< std::string, std::vector< std::string > > > properties
Property maps of the respective tables in tableNames.
A set of parameters for GPUdb::showTable.
std::vector< std::vector< std::string > > tableDescriptions
List of descriptions for the respective tables in tableNames.
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
std::string tableName
Name of the table for which to retrieve the information, in [ schema_name. ]table_name format,...
std::map< std::string, std::string > options
Optional parameters.
int64_t totalFullSize
If get_sizes is true, the sum of the elements of fullSizes (same value as totalSize).
std::vector< std::string > tableNames
If tableName is a table or view, then the single element of the array is tableName.
std::vector< std::string > typeIds
Type ids of the respective tables in tableNames.
A set of results returned by GPUdb::showTable.
std::vector< int64_t > sizes
If get_sizes is true, an array containing the number of records of each corresponding table in tableN...