6 #ifndef __SHOW_TABLE_H__ 7 #define __SHOW_TABLE_H__ 51 options(std::map<std::string, std::string>())
257 ShowTableRequest(
const std::string& tableName_,
const std::map<std::string, std::string>& options_):
416 template<>
struct codec_traits<
gpudb::ShowTableRequest>
426 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
428 const std::vector<size_t> fo = rd->fieldOrder();
430 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
471 typeIds(std::vector<std::string>()),
474 properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
475 additionalInfo(std::vector<std::map<std::string, std::string> >()),
476 sizes(std::vector<int64_t>()),
481 info(std::map<std::string, std::string>())
551 std::vector<std::map<std::string, std::vector<std::string> > >
properties;
857 std::map<std::string, std::string>
info;
863 template<>
struct codec_traits<
gpudb::ShowTableResponse>
875 ::avro::encode(e, v.
sizes);
880 ::avro::encode(e, v.
info);
885 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
887 const std::vector<size_t> fo = rd->fieldOrder();
889 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
926 ::avro::decode(d, v.
sizes);
946 ::avro::decode(d, v.
info);
964 ::avro::decode(d, v.
sizes);
969 ::avro::decode(d, v.
info);
975 #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...