GPUdb C++ API  Version 7.2.3.0
create_table_monitor.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_TABLE_MONITOR_H__
7 #define __CREATE_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
37  {
43  tableName(std::string()),
44  options(std::map<std::string, std::string>())
45  {
46  }
47 
235  CreateTableMonitorRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
236  tableName( tableName_ ),
237  options( options_ )
238  {
239  }
240 
247  std::string tableName;
248 
368  std::map<std::string, std::string> options;
369  };
370 } // end namespace gpudb
371 
372 namespace avro
373 {
374  template<> struct codec_traits<gpudb::CreateTableMonitorRequest>
375  {
376  static void encode(Encoder& e, const gpudb::CreateTableMonitorRequest& v)
377  {
378  ::avro::encode(e, v.tableName);
379  ::avro::encode(e, v.options);
380  }
381 
382  static void decode(Decoder& d, gpudb::CreateTableMonitorRequest& v)
383  {
384  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
385  {
386  const std::vector<size_t> fo = rd->fieldOrder();
387 
388  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
389  {
390  switch (*it)
391  {
392  case 0:
393  ::avro::decode(d, v.tableName);
394  break;
395 
396  case 1:
397  ::avro::decode(d, v.options);
398  break;
399 
400  default:
401  break;
402  }
403  }
404  }
405  else
406  {
407  ::avro::decode(d, v.tableName);
408  ::avro::decode(d, v.options);
409  }
410  }
411  };
412 } // end namespace avro
413 
414 namespace gpudb
415 {
422  {
428  topicId(std::string()),
429  tableName(std::string()),
430  typeSchema(std::string()),
431  info(std::map<std::string, std::string>())
432  {
433  }
434 
438  std::string topicId;
439 
444  std::string tableName;
445 
450  std::string typeSchema;
451 
482  std::map<std::string, std::string> info;
483  };
484 } // end namespace gpudb
485 
486 namespace avro
487 {
488  template<> struct codec_traits<gpudb::CreateTableMonitorResponse>
489  {
490  static void encode(Encoder& e, const gpudb::CreateTableMonitorResponse& v)
491  {
492  ::avro::encode(e, v.topicId);
493  ::avro::encode(e, v.tableName);
494  ::avro::encode(e, v.typeSchema);
495  ::avro::encode(e, v.info);
496  }
497 
498  static void decode(Decoder& d, gpudb::CreateTableMonitorResponse& v)
499  {
500  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
501  {
502  const std::vector<size_t> fo = rd->fieldOrder();
503 
504  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
505  {
506  switch (*it)
507  {
508  case 0:
509  ::avro::decode(d, v.topicId);
510  break;
511 
512  case 1:
513  ::avro::decode(d, v.tableName);
514  break;
515 
516  case 2:
517  ::avro::decode(d, v.typeSchema);
518  break;
519 
520  case 3:
521  ::avro::decode(d, v.info);
522  break;
523 
524  default:
525  break;
526  }
527  }
528  }
529  else
530  {
531  ::avro::decode(d, v.topicId);
532  ::avro::decode(d, v.tableName);
533  ::avro::decode(d, v.typeSchema);
534  ::avro::decode(d, v.info);
535  }
536  }
537  };
538 } // end namespace avro
539 
540 #endif // __CREATE_TABLE_MONITOR_H__
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::createTableMonitor.
std::string tableName
Value of tableName.
std::string topicId
The ZMQ topic ID to subscribe to for table events.
std::string tableName
Name of the table to monitor, in [ schema_name. ]table_name format, using standard name resolution ru...
CreateTableMonitorResponse()
Constructs a CreateTableMonitorResponse object with default parameters.
A set of parameters for GPUdb::createTableMonitor.
CreateTableMonitorRequest()
Constructs a CreateTableMonitorRequest object with default parameters.
CreateTableMonitorRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a CreateTableMonitorRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.
std::string typeSchema
JSON Avro schema of the table, for use in decoding published records.