GPUdb C++ API  Version 7.2.3.0
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 
419  AlterDatasinkRequest(const std::string& name_, const std::map<std::string, std::string>& datasinkUpdatesMap_, const std::map<std::string, std::string>& options_):
420  name( name_ ),
421  datasinkUpdatesMap( datasinkUpdatesMap_ ),
422  options( options_ )
423  {
424  }
425 
429  std::string name;
430 
652  std::map<std::string, std::string> datasinkUpdatesMap;
653 
657  std::map<std::string, std::string> options;
658  };
659 } // end namespace gpudb
660 
661 namespace avro
662 {
663  template<> struct codec_traits<gpudb::AlterDatasinkRequest>
664  {
665  static void encode(Encoder& e, const gpudb::AlterDatasinkRequest& v)
666  {
667  ::avro::encode(e, v.name);
668  ::avro::encode(e, v.datasinkUpdatesMap);
669  ::avro::encode(e, v.options);
670  }
671 
672  static void decode(Decoder& d, gpudb::AlterDatasinkRequest& v)
673  {
674  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
675  {
676  const std::vector<size_t> fo = rd->fieldOrder();
677 
678  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
679  {
680  switch (*it)
681  {
682  case 0:
683  ::avro::decode(d, v.name);
684  break;
685 
686  case 1:
687  ::avro::decode(d, v.datasinkUpdatesMap);
688  break;
689 
690  case 2:
691  ::avro::decode(d, v.options);
692  break;
693 
694  default:
695  break;
696  }
697  }
698  }
699  else
700  {
701  ::avro::decode(d, v.name);
702  ::avro::decode(d, v.datasinkUpdatesMap);
703  ::avro::decode(d, v.options);
704  }
705  }
706  };
707 } // end namespace avro
708 
709 namespace gpudb
710 {
717  {
722  updatedPropertiesMap(std::map<std::string, std::string>()),
723  info(std::map<std::string, std::string>())
724  {
725  }
726 
730  std::map<std::string, std::string> updatedPropertiesMap;
731 
735  std::map<std::string, std::string> info;
736  };
737 } // end namespace gpudb
738 
739 namespace avro
740 {
741  template<> struct codec_traits<gpudb::AlterDatasinkResponse>
742  {
743  static void encode(Encoder& e, const gpudb::AlterDatasinkResponse& v)
744  {
745  ::avro::encode(e, v.updatedPropertiesMap);
746  ::avro::encode(e, v.info);
747  }
748 
749  static void decode(Decoder& d, gpudb::AlterDatasinkResponse& v)
750  {
751  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
752  {
753  const std::vector<size_t> fo = rd->fieldOrder();
754 
755  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
756  {
757  switch (*it)
758  {
759  case 0:
760  ::avro::decode(d, v.updatedPropertiesMap);
761  break;
762 
763  case 1:
764  ::avro::decode(d, v.info);
765  break;
766 
767  default:
768  break;
769  }
770  }
771  }
772  else
773  {
774  ::avro::decode(d, v.updatedPropertiesMap);
775  ::avro::decode(d, v.info);
776  }
777  }
778  };
779 } // end namespace avro
780 
781 #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.