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

3500  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,):
3501  self.host_name = host_name
3502  self.page_size = page_size
3503  self.max_num_pages = max_num_pages
3504  self.num_pages_allocated = num_pages_allocated
3505  self.is_allocation_capped = is_allocation_capped
3506  self.node_memory_data = node_memory_data

Member Function Documentation

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

Definition at line 3600 of file ttypes.py.

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

Definition at line 3603 of file ttypes.py.

3604  def __ne__(self, other):
3605  return not (self == other)
3606 
def heavydb.thrift.ttypes.TNodeMemoryInfo.__repr__ (   self)

Definition at line 3595 of file ttypes.py.

3596  def __repr__(self):
3597  L = ['%s=%r' % (key, value)
3598  for key, value in self.__dict__.items()]
3599  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 3507 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.

3508  def read(self, iprot):
3509  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3510  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3511  return
3512  iprot.readStructBegin()
3513  while True:
3514  (fname, ftype, fid) = iprot.readFieldBegin()
3515  if ftype == TType.STOP:
3516  break
3517  if fid == 1:
3518  if ftype == TType.STRING:
3519  self.host_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3520  else:
3521  iprot.skip(ftype)
3522  elif fid == 2:
3523  if ftype == TType.I64:
3524  self.page_size = iprot.readI64()
3525  else:
3526  iprot.skip(ftype)
3527  elif fid == 3:
3528  if ftype == TType.I64:
3529  self.max_num_pages = iprot.readI64()
3530  else:
3531  iprot.skip(ftype)
3532  elif fid == 4:
3533  if ftype == TType.I64:
3534  self.num_pages_allocated = iprot.readI64()
3535  else:
3536  iprot.skip(ftype)
3537  elif fid == 5:
3538  if ftype == TType.BOOL:
3539  self.is_allocation_capped = iprot.readBool()
3540  else:
3541  iprot.skip(ftype)
3542  elif fid == 6:
3543  if ftype == TType.LIST:
3544  self.node_memory_data = []
3545  (_etype122, _size119) = iprot.readListBegin()
3546  for _i123 in range(_size119):
3547  _elem124 = TMemoryData()
3548  _elem124.read(iprot)
3549  self.node_memory_data.append(_elem124)
3550  iprot.readListEnd()
3551  else:
3552  iprot.skip(ftype)
3553  else:
3554  iprot.skip(ftype)
3555  iprot.readFieldEnd()
3556  iprot.readStructEnd()
def heavydb.thrift.ttypes.TNodeMemoryInfo.validate (   self)

Definition at line 3592 of file ttypes.py.

3593  def validate(self):
3594  return
def heavydb.thrift.ttypes.TNodeMemoryInfo.write (   self,
  oprot 
)

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

3558  def write(self, oprot):
3559  if oprot._fast_encode is not None and self.thrift_spec is not None:
3560  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3561  return
3562  oprot.writeStructBegin('TNodeMemoryInfo')
3563  if self.host_name is not None:
3564  oprot.writeFieldBegin('host_name', TType.STRING, 1)
3565  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3566  oprot.writeFieldEnd()
3567  if self.page_size is not None:
3568  oprot.writeFieldBegin('page_size', TType.I64, 2)
3569  oprot.writeI64(self.page_size)
3570  oprot.writeFieldEnd()
3571  if self.max_num_pages is not None:
3572  oprot.writeFieldBegin('max_num_pages', TType.I64, 3)
3573  oprot.writeI64(self.max_num_pages)
3574  oprot.writeFieldEnd()
3575  if self.num_pages_allocated is not None:
3576  oprot.writeFieldBegin('num_pages_allocated', TType.I64, 4)
3577  oprot.writeI64(self.num_pages_allocated)
3578  oprot.writeFieldEnd()
3579  if self.is_allocation_capped is not None:
3580  oprot.writeFieldBegin('is_allocation_capped', TType.BOOL, 5)
3581  oprot.writeBool(self.is_allocation_capped)
3582  oprot.writeFieldEnd()
3583  if self.node_memory_data is not None:
3584  oprot.writeFieldBegin('node_memory_data', TType.LIST, 6)
3585  oprot.writeListBegin(TType.STRUCT, len(self.node_memory_data))
3586  for iter125 in self.node_memory_data:
3587  iter125.write(oprot)
3588  oprot.writeListEnd()
3589  oprot.writeFieldEnd()
3590  oprot.writeFieldStop()
3591  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TNodeMemoryInfo.__dict__
private

Definition at line 3601 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TNodeMemoryInfo.host_name

Definition at line 3500 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 3504 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 3502 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 3505 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 3503 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 3501 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: