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