GPUdb C++ API  Version 7.2.2.4
alter_datasink.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 __ALTER_DATASINK_H__
7 #define __ALTER_DATASINK_H__
8 
9 namespace gpudb
10 {
20  {
25  name(std::string()),
26  datasinkUpdatesMap(std::map<std::string, std::string>()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
391  AlterDatasinkRequest(const std::string& name_, const std::map<std::string, std::string>& datasinkUpdatesMap_, const std::map<std::string, std::string>& options_):
392  name( name_ ),
393  datasinkUpdatesMap( datasinkUpdatesMap_ ),
394  options( options_ )
395  {
396  }
397 
401  std::string name;
402 
609  std::map<std::string, std::string> datasinkUpdatesMap;
610 
614  std::map<std::string, std::string> options;
615  };
616 } // end namespace gpudb
617 
618 namespace avro
619 {
620  template<> struct codec_traits<gpudb::AlterDatasinkRequest>
621  {
622  static void encode(Encoder& e, const gpudb::AlterDatasinkRequest& v)
623  {
624  ::avro::encode(e, v.name);
625  ::avro::encode(e, v.datasinkUpdatesMap);
626  ::avro::encode(e, v.options);
627  }
628 
629  static void decode(Decoder& d, gpudb::AlterDatasinkRequest& v)
630  {
631  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
632  {
633  const std::vector<size_t> fo = rd->fieldOrder();
634 
635  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
636  {
637  switch (*it)
638  {
639  case 0:
640  ::avro::decode(d, v.name);
641  break;
642 
643  case 1:
644  ::avro::decode(d, v.datasinkUpdatesMap);
645  break;
646 
647  case 2:
648  ::avro::decode(d, v.options);
649  break;
650 
651  default:
652  break;
653  }
654  }
655  }
656  else
657  {
658  ::avro::decode(d, v.name);
659  ::avro::decode(d, v.datasinkUpdatesMap);
660  ::avro::decode(d, v.options);
661  }
662  }
663  };
664 } // end namespace avro
665 
666 namespace gpudb
667 {
674  {
679  updatedPropertiesMap(std::map<std::string, std::string>()),
680  info(std::map<std::string, std::string>())
681  {
682  }
683 
687  std::map<std::string, std::string> updatedPropertiesMap;
688 
692  std::map<std::string, std::string> info;
693  };
694 } // end namespace gpudb
695 
696 namespace avro
697 {
698  template<> struct codec_traits<gpudb::AlterDatasinkResponse>
699  {
700  static void encode(Encoder& e, const gpudb::AlterDatasinkResponse& v)
701  {
702  ::avro::encode(e, v.updatedPropertiesMap);
703  ::avro::encode(e, v.info);
704  }
705 
706  static void decode(Decoder& d, gpudb::AlterDatasinkResponse& v)
707  {
708  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
709  {
710  const std::vector<size_t> fo = rd->fieldOrder();
711 
712  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
713  {
714  switch (*it)
715  {
716  case 0:
717  ::avro::decode(d, v.updatedPropertiesMap);
718  break;
719 
720  case 1:
721  ::avro::decode(d, v.info);
722  break;
723 
724  default:
725  break;
726  }
727  }
728  }
729  else
730  {
731  ::avro::decode(d, v.updatedPropertiesMap);
732  ::avro::decode(d, v.info);
733  }
734  }
735  };
736 } // end namespace avro
737 
738 #endif // __ALTER_DATASINK_H__
A set of parameters for GPUdb::alterDatasink.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > datasinkUpdatesMap
Map containing the properties of the data sink to be updated.
std::string name
Name of the data sink to be altered.
A set of results returned by GPUdb::alterDatasink.
AlterDatasinkRequest(const std::string &name_, const std::map< std::string, std::string > &datasinkUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterDatasinkRequest object with the specified parameters.
std::map< std::string, std::string > updatedPropertiesMap
Map of values updated.
AlterDatasinkRequest()
Constructs an AlterDatasinkRequest object with default parameters.
AlterDatasinkResponse()
Constructs an AlterDatasinkResponse object with default parameters.