OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.THardwareInfo Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.THardwareInfo:
+ Collaboration diagram for heavydb.thrift.ttypes.THardwareInfo:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 num_gpu_hw
 
 num_cpu_hw
 
 num_gpu_allocated
 
 start_gpu
 
 host_name
 
 gpu_info
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - num_gpu_hw
 - num_cpu_hw
 - num_gpu_allocated
 - start_gpu
 - host_name
 - gpu_info

Definition at line 3124 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.THardwareInfo.__init__ (   self,
  num_gpu_hw = None,
  num_cpu_hw = None,
  num_gpu_allocated = None,
  start_gpu = None,
  host_name = None,
  gpu_info = None 
)

Definition at line 3137 of file ttypes.py.

3138  def __init__(self, num_gpu_hw=None, num_cpu_hw=None, num_gpu_allocated=None, start_gpu=None, host_name=None, gpu_info=None,):
3139  self.num_gpu_hw = num_gpu_hw
3140  self.num_cpu_hw = num_cpu_hw
3141  self.num_gpu_allocated = num_gpu_allocated
3142  self.start_gpu = start_gpu
3143  self.host_name = host_name
3144  self.gpu_info = gpu_info

Member Function Documentation

def heavydb.thrift.ttypes.THardwareInfo.__eq__ (   self,
  other 
)

Definition at line 3238 of file ttypes.py.

3239  def __eq__(self, other):
3240  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.THardwareInfo.__ne__ (   self,
  other 
)

Definition at line 3241 of file ttypes.py.

3242  def __ne__(self, other):
3243  return not (self == other)
3244 
def heavydb.thrift.ttypes.THardwareInfo.__repr__ (   self)

Definition at line 3233 of file ttypes.py.

3234  def __repr__(self):
3235  L = ['%s=%r' % (key, value)
3236  for key, value in self.__dict__.items()]
3237  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def heavydb.thrift.ttypes.THardwareInfo.read (   self,
  iprot 
)

Definition at line 3145 of file ttypes.py.

References heavydb.thrift.ttypes.THardwareInfo.gpu_info, ai.heavy.jdbc.Options.host_name, heavydb.thrift.ttypes.TServerStatus.host_name, heavydb.thrift.ttypes.THardwareInfo.host_name, heavydb.thrift.ttypes.THardwareInfo.num_cpu_hw, heavydb.thrift.ttypes.THardwareInfo.num_gpu_allocated, heavydb.thrift.ttypes.THardwareInfo.num_gpu_hw, and heavydb.thrift.ttypes.THardwareInfo.start_gpu.

3146  def read(self, iprot):
3147  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3148  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3149  return
3150  iprot.readStructBegin()
3151  while True:
3152  (fname, ftype, fid) = iprot.readFieldBegin()
3153  if ftype == TType.STOP:
3154  break
3155  if fid == 1:
3156  if ftype == TType.I16:
3157  self.num_gpu_hw = iprot.readI16()
3158  else:
3159  iprot.skip(ftype)
3160  elif fid == 2:
3161  if ftype == TType.I16:
3162  self.num_cpu_hw = iprot.readI16()
3163  else:
3164  iprot.skip(ftype)
3165  elif fid == 3:
3166  if ftype == TType.I16:
3167  self.num_gpu_allocated = iprot.readI16()
3168  else:
3169  iprot.skip(ftype)
3170  elif fid == 4:
3171  if ftype == TType.I16:
3172  self.start_gpu = iprot.readI16()
3173  else:
3174  iprot.skip(ftype)
3175  elif fid == 5:
3176  if ftype == TType.STRING:
3177  self.host_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3178  else:
3179  iprot.skip(ftype)
3180  elif fid == 6:
3181  if ftype == TType.LIST:
3182  self.gpu_info = []
3183  (_etype101, _size98) = iprot.readListBegin()
3184  for _i102 in range(_size98):
3185  _elem103 = TGpuSpecification()
3186  _elem103.read(iprot)
3187  self.gpu_info.append(_elem103)
3188  iprot.readListEnd()
3189  else:
3190  iprot.skip(ftype)
3191  else:
3192  iprot.skip(ftype)
3193  iprot.readFieldEnd()
3194  iprot.readStructEnd()
def heavydb.thrift.ttypes.THardwareInfo.validate (   self)

Definition at line 3230 of file ttypes.py.

3231  def validate(self):
3232  return
def heavydb.thrift.ttypes.THardwareInfo.write (   self,
  oprot 
)

Definition at line 3195 of file ttypes.py.

References heavydb.thrift.ttypes.THardwareInfo.gpu_info, ai.heavy.jdbc.Options.host_name, heavydb.thrift.ttypes.TServerStatus.host_name, heavydb.thrift.ttypes.THardwareInfo.host_name, heavydb.thrift.ttypes.THardwareInfo.num_cpu_hw, heavydb.thrift.ttypes.THardwareInfo.num_gpu_allocated, heavydb.thrift.ttypes.THardwareInfo.num_gpu_hw, and heavydb.thrift.ttypes.THardwareInfo.start_gpu.

3196  def write(self, oprot):
3197  if oprot._fast_encode is not None and self.thrift_spec is not None:
3198  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3199  return
3200  oprot.writeStructBegin('THardwareInfo')
3201  if self.num_gpu_hw is not None:
3202  oprot.writeFieldBegin('num_gpu_hw', TType.I16, 1)
3203  oprot.writeI16(self.num_gpu_hw)
3204  oprot.writeFieldEnd()
3205  if self.num_cpu_hw is not None:
3206  oprot.writeFieldBegin('num_cpu_hw', TType.I16, 2)
3207  oprot.writeI16(self.num_cpu_hw)
3208  oprot.writeFieldEnd()
3209  if self.num_gpu_allocated is not None:
3210  oprot.writeFieldBegin('num_gpu_allocated', TType.I16, 3)
3211  oprot.writeI16(self.num_gpu_allocated)
3212  oprot.writeFieldEnd()
3213  if self.start_gpu is not None:
3214  oprot.writeFieldBegin('start_gpu', TType.I16, 4)
3215  oprot.writeI16(self.start_gpu)
3216  oprot.writeFieldEnd()
3217  if self.host_name is not None:
3218  oprot.writeFieldBegin('host_name', TType.STRING, 5)
3219  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3220  oprot.writeFieldEnd()
3221  if self.gpu_info is not None:
3222  oprot.writeFieldBegin('gpu_info', TType.LIST, 6)
3223  oprot.writeListBegin(TType.STRUCT, len(self.gpu_info))
3224  for iter104 in self.gpu_info:
3225  iter104.write(oprot)
3226  oprot.writeListEnd()
3227  oprot.writeFieldEnd()
3228  oprot.writeFieldStop()
3229  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.THardwareInfo.__dict__
private

Definition at line 3239 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.THardwareInfo.gpu_info

Definition at line 3143 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), and heavydb.thrift.ttypes.THardwareInfo.write().

heavydb.thrift.ttypes.THardwareInfo.host_name

Definition at line 3142 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), heavydb.thrift.ttypes.TNodeMemoryInfo.read(), heavydb.thrift.ttypes.THardwareInfo.write(), and heavydb.thrift.ttypes.TNodeMemoryInfo.write().

heavydb.thrift.ttypes.THardwareInfo.num_cpu_hw

Definition at line 3139 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), and heavydb.thrift.ttypes.THardwareInfo.write().

heavydb.thrift.ttypes.THardwareInfo.num_gpu_allocated

Definition at line 3140 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), and heavydb.thrift.ttypes.THardwareInfo.write().

heavydb.thrift.ttypes.THardwareInfo.num_gpu_hw

Definition at line 3138 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), and heavydb.thrift.ttypes.THardwareInfo.write().

heavydb.thrift.ttypes.THardwareInfo.start_gpu

Definition at line 3141 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.THardwareInfo.read(), and heavydb.thrift.ttypes.THardwareInfo.write().


The documentation for this class was generated from the following file: