6 #ifndef __SHOW_TABLE_H__ 7 #define __SHOW_TABLE_H__ 51 options(std::map<std::string, std::string>())
243 ShowTableRequest(
const std::string& tableName_,
const std::map<std::string, std::string>& options_):
392 template<>
struct codec_traits<
gpudb::ShowTableRequest>
402 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
404 const std::vector<size_t> fo = rd->fieldOrder();
406 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
447 typeIds(std::vector<std::string>()),
450 properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
451 additionalInfo(std::vector<std::map<std::string, std::string> >()),
452 sizes(std::vector<int64_t>()),
457 info(std::map<std::string, std::string>())
527 std::vector<std::map<std::string, std::vector<std::string> > >
properties;
833 std::map<std::string, std::string>
info;
839 template<>
struct codec_traits<
gpudb::ShowTableResponse>
851 ::avro::encode(e, v.
sizes);
856 ::avro::encode(e, v.
info);
861 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
863 const std::vector<size_t> fo = rd->fieldOrder();
865 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
902 ::avro::decode(d, v.
sizes);
922 ::avro::decode(d, v.
info);
940 ::avro::decode(d, v.
sizes);
945 ::avro::decode(d, v.
info);
951 #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...