OmniSciDB  72c90bc290
 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 3168 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 3181 of file ttypes.py.

3182  def __init__(self, num_gpu_hw=None, num_cpu_hw=None, num_gpu_allocated=None, start_gpu=None, host_name=None, gpu_info=None,):
3183  self.num_gpu_hw = num_gpu_hw
3184  self.num_cpu_hw = num_cpu_hw
3185  self.num_gpu_allocated = num_gpu_allocated
3186  self.start_gpu = start_gpu
3187  self.host_name = host_name
3188  self.gpu_info = gpu_info

Member Function Documentation

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

Definition at line 3282 of file ttypes.py.

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

Definition at line 3285 of file ttypes.py.

3286  def __ne__(self, other):
3287  return not (self == other)
3288 
def heavydb.thrift.ttypes.THardwareInfo.__repr__ (   self)

Definition at line 3277 of file ttypes.py.

3278  def __repr__(self):
3279  L = ['%s=%r' % (key, value)
3280  for key, value in self.__dict__.items()]
3281  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 3189 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.

3190  def read(self, iprot):
3191  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3192  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3193  return
3194  iprot.readStructBegin()
3195  while True:
3196  (fname, ftype, fid) = iprot.readFieldBegin()
3197  if ftype == TType.STOP:
3198  break
3199  if fid == 1:
3200  if ftype == TType.I16:
3201  self.num_gpu_hw = iprot.readI16()
3202  else:
3203  iprot.skip(ftype)
3204  elif fid == 2:
3205  if ftype == TType.I16:
3206  self.num_cpu_hw = iprot.readI16()
3207  else:
3208  iprot.skip(ftype)
3209  elif fid == 3:
3210  if ftype == TType.I16:
3211  self.num_gpu_allocated = iprot.readI16()
3212  else:
3213  iprot.skip(ftype)
3214  elif fid == 4:
3215  if ftype == TType.I16:
3216  self.start_gpu = iprot.readI16()
3217  else:
3218  iprot.skip(ftype)
3219  elif fid == 5:
3220  if ftype == TType.STRING:
3221  self.host_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3222  else:
3223  iprot.skip(ftype)
3224  elif fid == 6:
3225  if ftype == TType.LIST:
3226  self.gpu_info = []
3227  (_etype101, _size98) = iprot.readListBegin()
3228  for _i102 in range(_size98):
3229  _elem103 = TGpuSpecification()
3230  _elem103.read(iprot)
3231  self.gpu_info.append(_elem103)
3232  iprot.readListEnd()
3233  else:
3234  iprot.skip(ftype)
3235  else:
3236  iprot.skip(ftype)
3237  iprot.readFieldEnd()
3238  iprot.readStructEnd()
def heavydb.thrift.ttypes.THardwareInfo.validate (   self)

Definition at line 3274 of file ttypes.py.

3275  def validate(self):
3276  return
def heavydb.thrift.ttypes.THardwareInfo.write (   self,
  oprot 
)

Definition at line 3239 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.

3240  def write(self, oprot):
3241  if oprot._fast_encode is not None and self.thrift_spec is not None:
3242  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3243  return
3244  oprot.writeStructBegin('THardwareInfo')
3245  if self.num_gpu_hw is not None:
3246  oprot.writeFieldBegin('num_gpu_hw', TType.I16, 1)
3247  oprot.writeI16(self.num_gpu_hw)
3248  oprot.writeFieldEnd()
3249  if self.num_cpu_hw is not None:
3250  oprot.writeFieldBegin('num_cpu_hw', TType.I16, 2)
3251  oprot.writeI16(self.num_cpu_hw)
3252  oprot.writeFieldEnd()
3253  if self.num_gpu_allocated is not None:
3254  oprot.writeFieldBegin('num_gpu_allocated', TType.I16, 3)
3255  oprot.writeI16(self.num_gpu_allocated)
3256  oprot.writeFieldEnd()
3257  if self.start_gpu is not None:
3258  oprot.writeFieldBegin('start_gpu', TType.I16, 4)
3259  oprot.writeI16(self.start_gpu)
3260  oprot.writeFieldEnd()
3261  if self.host_name is not None:
3262  oprot.writeFieldBegin('host_name', TType.STRING, 5)
3263  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3264  oprot.writeFieldEnd()
3265  if self.gpu_info is not None:
3266  oprot.writeFieldBegin('gpu_info', TType.LIST, 6)
3267  oprot.writeListBegin(TType.STRUCT, len(self.gpu_info))
3268  for iter104 in self.gpu_info:
3269  iter104.write(oprot)
3270  oprot.writeListEnd()
3271  oprot.writeFieldEnd()
3272  oprot.writeFieldStop()
3273  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.THardwareInfo.__dict__
private

Definition at line 3283 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.THardwareInfo.gpu_info

Definition at line 3187 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 3186 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 3183 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 3184 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 3182 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 3185 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: