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

Public Member Functions

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

Public Attributes

 host_name
 
 page_size
 
 max_num_pages
 
 num_pages_allocated
 
 is_allocation_capped
 
 node_memory_data
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - host_name
 - page_size
 - max_num_pages
 - num_pages_allocated
 - is_allocation_capped
 - node_memory_data

Definition at line 3442 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TNodeMemoryInfo.__init__ (   self,
  host_name = None,
  page_size = None,
  max_num_pages = None,
  num_pages_allocated = None,
  is_allocation_capped = None,
  node_memory_data = None 
)

Definition at line 3455 of file ttypes.py.

3456  def __init__(self, host_name=None, page_size=None, max_num_pages=None, num_pages_allocated=None, is_allocation_capped=None, node_memory_data=None,):
3457  self.host_name = host_name
3458  self.page_size = page_size
3459  self.max_num_pages = max_num_pages
3460  self.num_pages_allocated = num_pages_allocated
3461  self.is_allocation_capped = is_allocation_capped
3462  self.node_memory_data = node_memory_data

Member Function Documentation

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

Definition at line 3556 of file ttypes.py.

3557  def __eq__(self, other):
3558  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TNodeMemoryInfo.__ne__ (   self,
  other 
)

Definition at line 3559 of file ttypes.py.

3560  def __ne__(self, other):
3561  return not (self == other)
3562 
def heavydb.thrift.ttypes.TNodeMemoryInfo.__repr__ (   self)

Definition at line 3551 of file ttypes.py.

3552  def __repr__(self):
3553  L = ['%s=%r' % (key, value)
3554  for key, value in self.__dict__.items()]
3555  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.TNodeMemoryInfo.read (   self,
  iprot 
)

Definition at line 3463 of file ttypes.py.

References ai.heavy.jdbc.Options.host_name, heavydb.thrift.ttypes.TServerStatus.host_name, heavydb.thrift.ttypes.THardwareInfo.host_name, heavydb.thrift.ttypes.TNodeMemoryInfo.host_name, heavydb.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped, heavydb.thrift.ttypes.TNodeMemoryInfo.max_num_pages, heavydb.thrift.ttypes.TNodeMemoryInfo.node_memory_data, heavydb.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated, File_Namespace::DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, and heavydb.thrift.ttypes.TNodeMemoryInfo.page_size.

3464  def read(self, iprot):
3465  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3466  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3467  return
3468  iprot.readStructBegin()
3469  while True:
3470  (fname, ftype, fid) = iprot.readFieldBegin()
3471  if ftype == TType.STOP:
3472  break
3473  if fid == 1:
3474  if ftype == TType.STRING:
3475  self.host_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3476  else:
3477  iprot.skip(ftype)
3478  elif fid == 2:
3479  if ftype == TType.I64:
3480  self.page_size = iprot.readI64()
3481  else:
3482  iprot.skip(ftype)
3483  elif fid == 3:
3484  if ftype == TType.I64:
3485  self.max_num_pages = iprot.readI64()
3486  else:
3487  iprot.skip(ftype)
3488  elif fid == 4:
3489  if ftype == TType.I64:
3490  self.num_pages_allocated = iprot.readI64()
3491  else:
3492  iprot.skip(ftype)
3493  elif fid == 5:
3494  if ftype == TType.BOOL:
3495  self.is_allocation_capped = iprot.readBool()
3496  else:
3497  iprot.skip(ftype)
3498  elif fid == 6:
3499  if ftype == TType.LIST:
3500  self.node_memory_data = []
3501  (_etype122, _size119) = iprot.readListBegin()
3502  for _i123 in range(_size119):
3503  _elem124 = TMemoryData()
3504  _elem124.read(iprot)
3505  self.node_memory_data.append(_elem124)
3506  iprot.readListEnd()
3507  else:
3508  iprot.skip(ftype)
3509  else:
3510  iprot.skip(ftype)
3511  iprot.readFieldEnd()
3512  iprot.readStructEnd()
def heavydb.thrift.ttypes.TNodeMemoryInfo.validate (   self)

Definition at line 3548 of file ttypes.py.

3549  def validate(self):
3550  return
def heavydb.thrift.ttypes.TNodeMemoryInfo.write (   self,
  oprot 
)

Definition at line 3513 of file ttypes.py.

References ai.heavy.jdbc.Options.host_name, heavydb.thrift.ttypes.TServerStatus.host_name, heavydb.thrift.ttypes.THardwareInfo.host_name, heavydb.thrift.ttypes.TNodeMemoryInfo.host_name, heavydb.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped, heavydb.thrift.ttypes.TNodeMemoryInfo.max_num_pages, heavydb.thrift.ttypes.TNodeMemoryInfo.node_memory_data, heavydb.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated, File_Namespace::DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, and heavydb.thrift.ttypes.TNodeMemoryInfo.page_size.

3514  def write(self, oprot):
3515  if oprot._fast_encode is not None and self.thrift_spec is not None:
3516  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3517  return
3518  oprot.writeStructBegin('TNodeMemoryInfo')
3519  if self.host_name is not None:
3520  oprot.writeFieldBegin('host_name', TType.STRING, 1)
3521  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3522  oprot.writeFieldEnd()
3523  if self.page_size is not None:
3524  oprot.writeFieldBegin('page_size', TType.I64, 2)
3525  oprot.writeI64(self.page_size)
3526  oprot.writeFieldEnd()
3527  if self.max_num_pages is not None:
3528  oprot.writeFieldBegin('max_num_pages', TType.I64, 3)
3529  oprot.writeI64(self.max_num_pages)
3530  oprot.writeFieldEnd()
3531  if self.num_pages_allocated is not None:
3532  oprot.writeFieldBegin('num_pages_allocated', TType.I64, 4)
3533  oprot.writeI64(self.num_pages_allocated)
3534  oprot.writeFieldEnd()
3535  if self.is_allocation_capped is not None:
3536  oprot.writeFieldBegin('is_allocation_capped', TType.BOOL, 5)
3537  oprot.writeBool(self.is_allocation_capped)
3538  oprot.writeFieldEnd()
3539  if self.node_memory_data is not None:
3540  oprot.writeFieldBegin('node_memory_data', TType.LIST, 6)
3541  oprot.writeListBegin(TType.STRUCT, len(self.node_memory_data))
3542  for iter125 in self.node_memory_data:
3543  iter125.write(oprot)
3544  oprot.writeListEnd()
3545  oprot.writeFieldEnd()
3546  oprot.writeFieldStop()
3547  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TNodeMemoryInfo.__dict__
private

Definition at line 3557 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TNodeMemoryInfo.host_name

Definition at line 3456 of file ttypes.py.

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

heavydb.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped

Definition at line 3460 of file ttypes.py.

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

heavydb.thrift.ttypes.TNodeMemoryInfo.max_num_pages

Definition at line 3458 of file ttypes.py.

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

heavydb.thrift.ttypes.TNodeMemoryInfo.node_memory_data

Definition at line 3461 of file ttypes.py.

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

heavydb.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated

Definition at line 3459 of file ttypes.py.

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

heavydb.thrift.ttypes.TNodeMemoryInfo.page_size

Definition at line 3457 of file ttypes.py.

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


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