6 #ifndef __AGGREGATE_UNPIVOT_H__
7 #define __AGGREGATE_UNPIVOT_H__
9 #include "../GenericRecord.hpp"
50 options(std::map<std::string, std::string>())
166 AggregateUnpivotRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const std::string& variableColumnName_,
const std::string& valueColumnName_,
const std::vector<std::string>& pivotedColumns_,
const std::map<std::string, std::string>& options_):
300 AggregateUnpivotRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const std::string& variableColumnName_,
const std::string& valueColumnName_,
const std::vector<std::string>& pivotedColumns_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
323 template<>
struct codec_traits<gpudb::AggregateUnpivotRequest>
338 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
340 const std::vector<size_t> fo = rd->fieldOrder();
342 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
432 info(std::map<std::string, std::string>())
442 std::map<std::string, std::string>
info;
448 template<>
struct codec_traits<gpudb::RawAggregateUnpivotResponse>
458 ::avro::encode(e, v.
info);
463 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
465 const std::vector<size_t> fo = rd->fieldOrder();
467 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
496 ::avro::decode(d, v.
info);
512 ::avro::decode(d, v.
info);
556 info(std::map<std::string, std::string>()),
563 std::vector<gpudb::GenericRecord>
data;
566 std::map<std::string, std::string>
info;
int64_t totalNumberOfRecords
boost::shared_ptr< Type > gpudb_type_ptr_t
std::string responseSchemaStr
std::map< std::string, std::string > info
std::vector< std::string > columnNames
std::vector< uint8_t > binaryEncodedResponse
AggregateUnpivotRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const std::string &variableColumnName_, const std::string &valueColumnName_, const std::vector< std::string > &pivotedColumns_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
Constructs an AggregateUnpivotRequest object with the specified parameters.
std::string variableColumnName
A set of output parameters for const.
std::string valueColumnName
RawAggregateUnpivotResponse()
Constructs a RawAggregateUnpivotResponse object with default parameter values.
std::map< std::string, std::string > info
gpudb_type_ptr_t dataTypePtr
AggregateUnpivotRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const std::string &variableColumnName_, const std::string &valueColumnName_, const std::vector< std::string > &pivotedColumns_, const std::map< std::string, std::string > &options_)
Constructs an AggregateUnpivotRequest object with the specified parameters.
AggregateUnpivotRequest()
Constructs an AggregateUnpivotRequest object with default parameter values.
A set of output parameters for const.
std::vector< gpudb::GenericRecord > data
std::map< std::string, std::string > options
std::string jsonEncodedResponse
AggregateUnpivotResponse()
Constructs an AggregateUnpivotResponse object with default parameter values.
A set of input parameters for const.
std::string responseSchemaStr
std::vector< std::string > pivotedColumns
int64_t totalNumberOfRecords