GPUdb C++ API  Version 7.2.3.0
create_materialized_view.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __CREATE_MATERIALIZED_VIEW_H__
7 #define __CREATE_MATERIALIZED_VIEW_H__
8 
9 namespace gpudb
10 {
29  {
35  tableName(std::string()),
36  options(std::map<std::string, std::string>())
37  {
38  }
39 
226  CreateMaterializedViewRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
227  tableName( tableName_ ),
228  options( options_ )
229  {
230  }
231 
240  std::string tableName;
241 
363  std::map<std::string, std::string> options;
364  };
365 } // end namespace gpudb
366 
367 namespace avro
368 {
369  template<> struct codec_traits<gpudb::CreateMaterializedViewRequest>
370  {
371  static void encode(Encoder& e, const gpudb::CreateMaterializedViewRequest& v)
372  {
373  ::avro::encode(e, v.tableName);
374  ::avro::encode(e, v.options);
375  }
376 
377  static void decode(Decoder& d, gpudb::CreateMaterializedViewRequest& v)
378  {
379  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
380  {
381  const std::vector<size_t> fo = rd->fieldOrder();
382 
383  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
384  {
385  switch (*it)
386  {
387  case 0:
388  ::avro::decode(d, v.tableName);
389  break;
390 
391  case 1:
392  ::avro::decode(d, v.options);
393  break;
394 
395  default:
396  break;
397  }
398  }
399  }
400  else
401  {
402  ::avro::decode(d, v.tableName);
403  ::avro::decode(d, v.options);
404  }
405  }
406  };
407 } // end namespace avro
408 
409 namespace gpudb
410 {
417  {
423  tableName(std::string()),
424  viewId(std::string()),
425  info(std::map<std::string, std::string>())
426  {
427  }
428 
433  std::string tableName;
434 
438  std::string viewId;
439 
450  std::map<std::string, std::string> info;
451  };
452 } // end namespace gpudb
453 
454 namespace avro
455 {
456  template<> struct codec_traits<gpudb::CreateMaterializedViewResponse>
457  {
458  static void encode(Encoder& e, const gpudb::CreateMaterializedViewResponse& v)
459  {
460  ::avro::encode(e, v.tableName);
461  ::avro::encode(e, v.viewId);
462  ::avro::encode(e, v.info);
463  }
464 
465  static void decode(Decoder& d, gpudb::CreateMaterializedViewResponse& v)
466  {
467  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
468  {
469  const std::vector<size_t> fo = rd->fieldOrder();
470 
471  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
472  {
473  switch (*it)
474  {
475  case 0:
476  ::avro::decode(d, v.tableName);
477  break;
478 
479  case 1:
480  ::avro::decode(d, v.viewId);
481  break;
482 
483  case 2:
484  ::avro::decode(d, v.info);
485  break;
486 
487  default:
488  break;
489  }
490  }
491  }
492  else
493  {
494  ::avro::decode(d, v.tableName);
495  ::avro::decode(d, v.viewId);
496  ::avro::decode(d, v.info);
497  }
498  }
499  };
500 } // end namespace avro
501 
502 #endif // __CREATE_MATERIALIZED_VIEW_H__
CreateMaterializedViewRequest()
Constructs a CreateMaterializedViewRequest object with default parameters.
std::string tableName
Value of tableName.
A set of results returned by GPUdb::createMaterializedView.
A set of parameters for GPUdb::createMaterializedView.
CreateMaterializedViewResponse()
Constructs a CreateMaterializedViewResponse object with default parameters.
std::string tableName
Name of the table to be created that is the top-level table of the materialized view,...
CreateMaterializedViewRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a CreateMaterializedViewRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.