GPUdb C++ API  Version 7.2.3.0
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 
455  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
456  propertyUpdatesMap( propertyUpdatesMap_ ),
457  options( options_ )
458  {
459  }
460 
691  std::map<std::string, std::string> propertyUpdatesMap;
692 
728  std::map<std::string, std::string> options;
729  };
730 } // end namespace gpudb
731 
732 namespace avro
733 {
734  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
735  {
736  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
737  {
738  ::avro::encode(e, v.propertyUpdatesMap);
739  ::avro::encode(e, v.options);
740  }
741 
742  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
743  {
744  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
745  {
746  const std::vector<size_t> fo = rd->fieldOrder();
747 
748  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
749  {
750  switch (*it)
751  {
752  case 0:
753  ::avro::decode(d, v.propertyUpdatesMap);
754  break;
755 
756  case 1:
757  ::avro::decode(d, v.options);
758  break;
759 
760  default:
761  break;
762  }
763  }
764  }
765  else
766  {
767  ::avro::decode(d, v.propertyUpdatesMap);
768  ::avro::decode(d, v.options);
769  }
770  }
771  };
772 } // end namespace avro
773 
774 namespace gpudb
775 {
782  {
788  updatedPropertiesMap(std::map<std::string, std::string>()),
789  info(std::map<std::string, std::string>())
790  {
791  }
792 
797  std::map<std::string, std::string> updatedPropertiesMap;
798 
802  std::map<std::string, std::string> info;
803  };
804 } // end namespace gpudb
805 
806 namespace avro
807 {
808  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
809  {
810  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
811  {
812  ::avro::encode(e, v.updatedPropertiesMap);
813  ::avro::encode(e, v.info);
814  }
815 
816  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
817  {
818  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
819  {
820  const std::vector<size_t> fo = rd->fieldOrder();
821 
822  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
823  {
824  switch (*it)
825  {
826  case 0:
827  ::avro::decode(d, v.updatedPropertiesMap);
828  break;
829 
830  case 1:
831  ::avro::decode(d, v.info);
832  break;
833 
834  default:
835  break;
836  }
837  }
838  }
839  else
840  {
841  ::avro::decode(d, v.updatedPropertiesMap);
842  ::avro::decode(d, v.info);
843  }
844  }
845  };
846 } // end namespace avro
847 
848 #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.