6 #ifndef __AGGREGATE_UNPIVOT_H__ 7 #define __AGGREGATE_UNPIVOT_H__ 9 #include "../GenericRecord.hpp" 49 options(std::map<std::string, std::string>())
262 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_):
497 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_):
689 template<>
struct codec_traits<
gpudb::AggregateUnpivotRequest>
704 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
706 const std::vector<size_t> fo = rd->fieldOrder();
708 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
779 info(std::map<std::string, std::string>())
825 std::map<std::string, std::string>
info;
831 template<>
struct codec_traits<
gpudb::RawAggregateUnpivotResponse>
841 ::avro::encode(e, v.
info);
846 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
848 const std::vector<size_t> fo = rd->fieldOrder();
850 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
879 ::avro::decode(d, v.
info);
895 ::avro::decode(d, v.
info);
920 info(std::map<std::string, std::string>()),
939 std::vector<gpudb::GenericRecord>
data;
961 std::map<std::string, std::string>
info;
967 #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.