GPUdb C++ API  Version 7.2.2.4
alter_system_properties.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_SYSTEM_PROPERTIES_H__
7 #define __ALTER_SYSTEM_PROPERTIES_H__
8 
9 namespace gpudb
10 {
25  {
31  propertyUpdatesMap(std::map<std::string, std::string>()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
490  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
491  propertyUpdatesMap( propertyUpdatesMap_ ),
492  options( options_ )
493  {
494  }
495 
736  std::map<std::string, std::string> propertyUpdatesMap;
737 
773  std::map<std::string, std::string> options;
774  };
775 } // end namespace gpudb
776 
777 namespace avro
778 {
779  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
780  {
781  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
782  {
783  ::avro::encode(e, v.propertyUpdatesMap);
784  ::avro::encode(e, v.options);
785  }
786 
787  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
788  {
789  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
790  {
791  const std::vector<size_t> fo = rd->fieldOrder();
792 
793  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
794  {
795  switch (*it)
796  {
797  case 0:
798  ::avro::decode(d, v.propertyUpdatesMap);
799  break;
800 
801  case 1:
802  ::avro::decode(d, v.options);
803  break;
804 
805  default:
806  break;
807  }
808  }
809  }
810  else
811  {
812  ::avro::decode(d, v.propertyUpdatesMap);
813  ::avro::decode(d, v.options);
814  }
815  }
816  };
817 } // end namespace avro
818 
819 namespace gpudb
820 {
827  {
833  updatedPropertiesMap(std::map<std::string, std::string>()),
834  info(std::map<std::string, std::string>())
835  {
836  }
837 
842  std::map<std::string, std::string> updatedPropertiesMap;
843 
847  std::map<std::string, std::string> info;
848  };
849 } // end namespace gpudb
850 
851 namespace avro
852 {
853  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
854  {
855  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
856  {
857  ::avro::encode(e, v.updatedPropertiesMap);
858  ::avro::encode(e, v.info);
859  }
860 
861  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
862  {
863  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
864  {
865  const std::vector<size_t> fo = rd->fieldOrder();
866 
867  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
868  {
869  switch (*it)
870  {
871  case 0:
872  ::avro::decode(d, v.updatedPropertiesMap);
873  break;
874 
875  case 1:
876  ::avro::decode(d, v.info);
877  break;
878 
879  default:
880  break;
881  }
882  }
883  }
884  else
885  {
886  ::avro::decode(d, v.updatedPropertiesMap);
887  ::avro::decode(d, v.info);
888  }
889  }
890  };
891 } // end namespace avro
892 
893 #endif // __ALTER_SYSTEM_PROPERTIES_H__
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterSystemProperties.
std::map< std::string, std::string > updatedPropertiesMap
Map of values updated; for speed tests, a map of values measured to the measurement.
std::map< std::string, std::string > propertyUpdatesMap
Map containing the properties of the system to be updated.
AlterSystemPropertiesResponse()
Constructs an AlterSystemPropertiesResponse object with default parameters.
AlterSystemPropertiesRequest()
Constructs an AlterSystemPropertiesRequest object with default parameters.
A set of results returned by GPUdb::alterSystemProperties.
AlterSystemPropertiesRequest(const std::map< std::string, std::string > &propertyUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterSystemPropertiesRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.