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 
449  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
450  propertyUpdatesMap( propertyUpdatesMap_ ),
451  options( options_ )
452  {
453  }
454 
681  std::map<std::string, std::string> propertyUpdatesMap;
682 
718  std::map<std::string, std::string> options;
719  };
720 } // end namespace gpudb
721 
722 namespace avro
723 {
724  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
725  {
726  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
727  {
728  ::avro::encode(e, v.propertyUpdatesMap);
729  ::avro::encode(e, v.options);
730  }
731 
732  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
733  {
734  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
735  {
736  const std::vector<size_t> fo = rd->fieldOrder();
737 
738  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
739  {
740  switch (*it)
741  {
742  case 0:
743  ::avro::decode(d, v.propertyUpdatesMap);
744  break;
745 
746  case 1:
747  ::avro::decode(d, v.options);
748  break;
749 
750  default:
751  break;
752  }
753  }
754  }
755  else
756  {
757  ::avro::decode(d, v.propertyUpdatesMap);
758  ::avro::decode(d, v.options);
759  }
760  }
761  };
762 } // end namespace avro
763 
764 namespace gpudb
765 {
772  {
778  updatedPropertiesMap(std::map<std::string, std::string>()),
779  info(std::map<std::string, std::string>())
780  {
781  }
782 
787  std::map<std::string, std::string> updatedPropertiesMap;
788 
792  std::map<std::string, std::string> info;
793  };
794 } // end namespace gpudb
795 
796 namespace avro
797 {
798  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
799  {
800  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
801  {
802  ::avro::encode(e, v.updatedPropertiesMap);
803  ::avro::encode(e, v.info);
804  }
805 
806  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
807  {
808  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
809  {
810  const std::vector<size_t> fo = rd->fieldOrder();
811 
812  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
813  {
814  switch (*it)
815  {
816  case 0:
817  ::avro::decode(d, v.updatedPropertiesMap);
818  break;
819 
820  case 1:
821  ::avro::decode(d, v.info);
822  break;
823 
824  default:
825  break;
826  }
827  }
828  }
829  else
830  {
831  ::avro::decode(d, v.updatedPropertiesMap);
832  ::avro::decode(d, v.info);
833  }
834  }
835  };
836 } // end namespace avro
837 
838 #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.