GPUdb C++ API  Version 6.1.0.0
gpudb::AggregateUnpivotRequest Struct Reference

A set of input parameters for aggregateUnpivotRaw(const AggregateUnpivotRequest&) const. More...

#include <gpudb/protocol/aggregate_unpivot.h>

Public Member Functions

 AggregateUnpivotRequest ()
 Constructs an AggregateUnpivotRequest object with default parameter values. More...
 
 AggregateUnpivotRequest (const std::string &tableName_, 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. More...
 
 AggregateUnpivotRequest (const std::string &tableName_, 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. More...
 

Public Attributes

std::string tableName
 
std::string variableColumnName
 
std::string valueColumnName
 
std::vector< std::string > pivotedColumns
 
std::string encoding
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for aggregateUnpivotRaw(const AggregateUnpivotRequest&) const.

Rotate the column values into rows values.

The aggregate unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.

The response is returned as a dynamic schema. For details see: dynamic schemas documentation.

Definition at line 32 of file aggregate_unpivot.h.

Constructor & Destructor Documentation

◆ AggregateUnpivotRequest() [1/3]

gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest ( )
inline

Constructs an AggregateUnpivotRequest object with default parameter values.

Definition at line 39 of file aggregate_unpivot.h.

◆ AggregateUnpivotRequest() [2/3]

gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest ( const std::string &  tableName_,
const std::string &  variableColumnName_,
const std::string &  valueColumnName_,
const std::vector< std::string > &  pivotedColumns_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs an AggregateUnpivotRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table on which the operation will be performed. Must be an existing table/view.
[in]variableColumnName_Specifies the variable/parameter column name.
[in]valueColumnName_Specifies the value column name.
[in]pivotedColumns_List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
[in]options_Optional parameters.

Definition at line 117 of file aggregate_unpivot.h.

◆ AggregateUnpivotRequest() [3/3]

gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest ( const std::string &  tableName_,
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_ 
)
inline

Constructs an AggregateUnpivotRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table on which the operation will be performed. Must be an existing table/view.
[in]variableColumnName_Specifies the variable/parameter column name.
[in]valueColumnName_Specifies the value column name.
[in]pivotedColumns_List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
[in]encoding_Specifies the encoding for returned records. The default value is gpudb::aggregate_unpivot_binary.
[in]options_Optional parameters.

Definition at line 206 of file aggregate_unpivot.h.

Member Data Documentation

◆ encoding

std::string gpudb::AggregateUnpivotRequest::encoding

Definition at line 220 of file aggregate_unpivot.h.

◆ options

std::map<std::string, std::string> gpudb::AggregateUnpivotRequest::options

Definition at line 221 of file aggregate_unpivot.h.

◆ pivotedColumns

std::vector<std::string> gpudb::AggregateUnpivotRequest::pivotedColumns

Definition at line 219 of file aggregate_unpivot.h.

◆ tableName

std::string gpudb::AggregateUnpivotRequest::tableName

Definition at line 216 of file aggregate_unpivot.h.

◆ valueColumnName

std::string gpudb::AggregateUnpivotRequest::valueColumnName

Definition at line 218 of file aggregate_unpivot.h.

◆ variableColumnName

std::string gpudb::AggregateUnpivotRequest::variableColumnName

Definition at line 217 of file aggregate_unpivot.h.


The documentation for this struct was generated from the following file: