6 #ifndef __AGGREGATE_UNPIVOT_H__ 7 #define __AGGREGATE_UNPIVOT_H__ 9 #include "../GenericRecord.hpp" 50 options(std::map<std::string, std::string>())
158 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_):
284 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_):
322 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
324 const std::vector<size_t> fo = rd->fieldOrder();
326 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
411 responseSchemaStr(std::string()),
412 binaryEncodedResponse(std::vector<uint8_t>()),
413 jsonEncodedResponse(std::string()),
414 totalNumberOfRecords(int64_t()),
415 hasMoreRecords(bool())
444 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
446 const std::vector<size_t> fo = rd->fieldOrder();
448 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
528 responseSchemaStr(std::string()),
530 totalNumberOfRecords(int64_t()),
531 hasMoreRecords(bool()),
538 std::vector<gpudb::GenericRecord>
data;
int64_t totalNumberOfRecords
boost::shared_ptr< Type > gpudb_type_ptr_t
std::string responseSchemaStr
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 aggregateUnpivot(const AggregateUnpivotRequest&) const.
std::string valueColumnName
RawAggregateUnpivotResponse()
Constructs a RawAggregateUnpivotResponse object with default parameter values.
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 aggregateUnpivotRaw(const AggregateUnpivotRequest&) 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 aggregateUnpivotRaw(const AggregateUnpivotRequest&) const...
std::string responseSchemaStr
std::vector< std::string > pivotedColumns
int64_t totalNumberOfRecords