6 #ifndef __AGGREGATE_UNPIVOT_H__ 7 #define __AGGREGATE_UNPIVOT_H__ 9 #include "../GenericRecord.hpp" 49 options(std::map<std::string, std::string>())
255 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_):
483 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_):
670 template<>
struct codec_traits<
gpudb::AggregateUnpivotRequest>
685 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
687 const std::vector<size_t> fo = rd->fieldOrder();
689 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
760 info(std::map<std::string, std::string>())
806 std::map<std::string, std::string>
info;
812 template<>
struct codec_traits<
gpudb::RawAggregateUnpivotResponse>
822 ::avro::encode(e, v.
info);
827 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
829 const std::vector<size_t> fo = rd->fieldOrder();
831 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
860 ::avro::decode(d, v.
info);
876 ::avro::decode(d, v.
info);
901 info(std::map<std::string, std::string>()),
920 std::vector<gpudb::GenericRecord>
data;
942 std::map<std::string, std::string>
info;
948 #endif // __AGGREGATE_UNPIVOT_H__ int64_t totalNumberOfRecords
Total/Filtered number of records.
boost::shared_ptr< Type > gpudb_type_ptr_t
std::string responseSchemaStr
Avro schema of data or jsonEncodedResponse.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > columnNames
List of column names or expressions.
bool hasMoreRecords
Too many records.
std::vector< uint8_t > binaryEncodedResponse
Avro binary encoded response.
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 tableName
Typically shows the result-table name if provided in the request (Ignore otherwise).
std::string variableColumnName
Specifies the variable/parameter column name.
A set of results returned by GPUdb::aggregateUnpivot.
std::string valueColumnName
Specifies the value column name.
RawAggregateUnpivotResponse()
Constructs a RawAggregateUnpivotResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::string tableName
Typically shows the result-table name if provided in the request (Ignore otherwise).
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 parameters.
A set of results returned by GPUdb::aggregateUnpivotRaw.
std::vector< gpudb::GenericRecord > data
Avro binary encoded response.
bool hasMoreRecords
Too many records.
std::map< std::string, std::string > options
Optional parameters.
std::string jsonEncodedResponse
Avro JSON encoded response.
AggregateUnpivotResponse()
Constructs an AggregateUnpivotResponse object with default parameters.
std::string tableName
Name of the table on which the operation will be performed.
A set of parameters for GPUdb::aggregateUnpivot.
std::string responseSchemaStr
Avro schema of binaryEncodedResponse or jsonEncodedResponse.
std::string encoding
Specifies the encoding for returned records.
std::vector< std::string > pivotedColumns
List of one or more values typically the column names of the input table.
int64_t totalNumberOfRecords
Total/Filtered number of records.