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 
497  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
498  propertyUpdatesMap( propertyUpdatesMap_ ),
499  options( options_ )
500  {
501  }
502 
747  std::map<std::string, std::string> propertyUpdatesMap;
748 
784  std::map<std::string, std::string> options;
785  };
786 } // end namespace gpudb
787 
788 namespace avro
789 {
790  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
791  {
792  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
793  {
794  ::avro::encode(e, v.propertyUpdatesMap);
795  ::avro::encode(e, v.options);
796  }
797 
798  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
799  {
800  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
801  {
802  const std::vector<size_t> fo = rd->fieldOrder();
803 
804  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
805  {
806  switch (*it)
807  {
808  case 0:
809  ::avro::decode(d, v.propertyUpdatesMap);
810  break;
811 
812  case 1:
813  ::avro::decode(d, v.options);
814  break;
815 
816  default:
817  break;
818  }
819  }
820  }
821  else
822  {
823  ::avro::decode(d, v.propertyUpdatesMap);
824  ::avro::decode(d, v.options);
825  }
826  }
827  };
828 } // end namespace avro
829 
830 namespace gpudb
831 {
838  {
844  updatedPropertiesMap(std::map<std::string, std::string>()),
845  info(std::map<std::string, std::string>())
846  {
847  }
848 
853  std::map<std::string, std::string> updatedPropertiesMap;
854 
858  std::map<std::string, std::string> info;
859  };
860 } // end namespace gpudb
861 
862 namespace avro
863 {
864  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
865  {
866  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
867  {
868  ::avro::encode(e, v.updatedPropertiesMap);
869  ::avro::encode(e, v.info);
870  }
871 
872  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
873  {
874  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
875  {
876  const std::vector<size_t> fo = rd->fieldOrder();
877 
878  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
879  {
880  switch (*it)
881  {
882  case 0:
883  ::avro::decode(d, v.updatedPropertiesMap);
884  break;
885 
886  case 1:
887  ::avro::decode(d, v.info);
888  break;
889 
890  default:
891  break;
892  }
893  }
894  }
895  else
896  {
897  ::avro::decode(d, v.updatedPropertiesMap);
898  ::avro::decode(d, v.info);
899  }
900  }
901  };
902 } // end namespace avro
903 
904 #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.