GPUdb C++ API  Version 7.2.2.4
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 
225  CreateMaterializedViewRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
226  tableName( tableName_ ),
227  options( options_ )
228  {
229  }
230 
239  std::string tableName;
240 
362  std::map<std::string, std::string> options;
363  };
364 } // end namespace gpudb
365 
366 namespace avro
367 {
368  template<> struct codec_traits<gpudb::CreateMaterializedViewRequest>
369  {
370  static void encode(Encoder& e, const gpudb::CreateMaterializedViewRequest& v)
371  {
372  ::avro::encode(e, v.tableName);
373  ::avro::encode(e, v.options);
374  }
375 
376  static void decode(Decoder& d, gpudb::CreateMaterializedViewRequest& v)
377  {
378  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
379  {
380  const std::vector<size_t> fo = rd->fieldOrder();
381 
382  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
383  {
384  switch (*it)
385  {
386  case 0:
387  ::avro::decode(d, v.tableName);
388  break;
389 
390  case 1:
391  ::avro::decode(d, v.options);
392  break;
393 
394  default:
395  break;
396  }
397  }
398  }
399  else
400  {
401  ::avro::decode(d, v.tableName);
402  ::avro::decode(d, v.options);
403  }
404  }
405  };
406 } // end namespace avro
407 
408 namespace gpudb
409 {
416  {
422  tableName(std::string()),
423  viewId(std::string()),
424  info(std::map<std::string, std::string>())
425  {
426  }
427 
432  std::string tableName;
433 
437  std::string viewId;
438 
449  std::map<std::string, std::string> info;
450  };
451 } // end namespace gpudb
452 
453 namespace avro
454 {
455  template<> struct codec_traits<gpudb::CreateMaterializedViewResponse>
456  {
457  static void encode(Encoder& e, const gpudb::CreateMaterializedViewResponse& v)
458  {
459  ::avro::encode(e, v.tableName);
460  ::avro::encode(e, v.viewId);
461  ::avro::encode(e, v.info);
462  }
463 
464  static void decode(Decoder& d, gpudb::CreateMaterializedViewResponse& v)
465  {
466  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
467  {
468  const std::vector<size_t> fo = rd->fieldOrder();
469 
470  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
471  {
472  switch (*it)
473  {
474  case 0:
475  ::avro::decode(d, v.tableName);
476  break;
477 
478  case 1:
479  ::avro::decode(d, v.viewId);
480  break;
481 
482  case 2:
483  ::avro::decode(d, v.info);
484  break;
485 
486  default:
487  break;
488  }
489  }
490  }
491  else
492  {
493  ::avro::decode(d, v.tableName);
494  ::avro::decode(d, v.viewId);
495  ::avro::decode(d, v.info);
496  }
497  }
498  };
499 } // end namespace avro
500 
501 #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.