6 #ifndef __CREATE_PROJECTION_H__ 7 #define __CREATE_PROJECTION_H__ 58 options(std::map<std::string, std::string>())
411 CreateProjectionRequest(
const std::string& tableName_,
const std::string& projectionName_,
const std::vector<std::string>& columnNames_,
const std::map<std::string, std::string>& options_):
678 template<>
struct codec_traits<
gpudb::CreateProjectionRequest>
690 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
692 const std::vector<size_t> fo = rd->fieldOrder();
694 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
745 info(std::map<std::string, std::string>())
768 std::map<std::string, std::string>
info;
774 template<>
struct codec_traits<
gpudb::CreateProjectionResponse>
779 ::avro::encode(e, v.
info);
784 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
786 const std::vector<size_t> fo = rd->fieldOrder();
788 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
797 ::avro::decode(d, v.
info);
808 ::avro::decode(d, v.
info);
814 #endif // __CREATE_PROJECTION_H__ std::string projectionName
Value of projectionName.
std::string tableName
Name of the existing table on which the projection is to be applied, in [ schema_name....
CreateProjectionResponse()
Constructs a CreateProjectionResponse object with default parameters.
A set of results returned by GPUdb::createProjection.
std::string projectionName
Name of the projection to be created, in [ schema_name. ]table_name format, using standard name resol...
std::map< std::string, std::string > options
Optional parameters.
CreateProjectionRequest()
Constructs a CreateProjectionRequest object with default parameters.
CreateProjectionRequest(const std::string &tableName_, const std::string &projectionName_, const std::vector< std::string > &columnNames_, const std::map< std::string, std::string > &options_)
Constructs a CreateProjectionRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > columnNames
List of columns from tableName to be included in the projection.
A set of parameters for GPUdb::createProjection.