OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TNodeMemoryInfo Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TNodeMemoryInfo:
+ Collaboration diagram for omnisci.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 3235 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.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 3248 of file ttypes.py.

3249  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,):
3250  self.host_name = host_name
3251  self.page_size = page_size
3252  self.max_num_pages = max_num_pages
3253  self.num_pages_allocated = num_pages_allocated
3254  self.is_allocation_capped = is_allocation_capped
3255  self.node_memory_data = node_memory_data

Member Function Documentation

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

Definition at line 3349 of file ttypes.py.

3350  def __eq__(self, other):
3351  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TNodeMemoryInfo.__ne__ (   self,
  other 
)

Definition at line 3352 of file ttypes.py.

3353  def __ne__(self, other):
3354  return not (self == other)
3355 
def omnisci.thrift.ttypes.TNodeMemoryInfo.__repr__ (   self)

Definition at line 3344 of file ttypes.py.

3345  def __repr__(self):
3346  L = ['%s=%r' % (key, value)
3347  for key, value in self.__dict__.items()]
3348  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 omnisci.thrift.ttypes.TNodeMemoryInfo.read (   self,
  iprot 
)

Definition at line 3256 of file ttypes.py.

References com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.THardwareInfo.host_name, omnisci.thrift.ttypes.TNodeMemoryInfo.host_name, omnisci.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped, omnisci.thrift.ttypes.TNodeMemoryInfo.max_num_pages, omnisci.thrift.ttypes.TNodeMemoryInfo.node_memory_data, omnisci.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated, and omnisci.thrift.ttypes.TNodeMemoryInfo.page_size.

3257  def read(self, iprot):
3258  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3259  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3260  return
3261  iprot.readStructBegin()
3262  while True:
3263  (fname, ftype, fid) = iprot.readFieldBegin()
3264  if ftype == TType.STOP:
3265  break
3266  if fid == 1:
3267  if ftype == TType.STRING:
3268  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3269  else:
3270  iprot.skip(ftype)
3271  elif fid == 2:
3272  if ftype == TType.I64:
3273  self.page_size = iprot.readI64()
3274  else:
3275  iprot.skip(ftype)
3276  elif fid == 3:
3277  if ftype == TType.I64:
3278  self.max_num_pages = iprot.readI64()
3279  else:
3280  iprot.skip(ftype)
3281  elif fid == 4:
3282  if ftype == TType.I64:
3283  self.num_pages_allocated = iprot.readI64()
3284  else:
3285  iprot.skip(ftype)
3286  elif fid == 5:
3287  if ftype == TType.BOOL:
3288  self.is_allocation_capped = iprot.readBool()
3289  else:
3290  iprot.skip(ftype)
3291  elif fid == 6:
3292  if ftype == TType.LIST:
3293  self.node_memory_data = []
3294  (_etype122, _size119) = iprot.readListBegin()
3295  for _i123 in range(_size119):
3296  _elem124 = TMemoryData()
3297  _elem124.read(iprot)
3298  self.node_memory_data.append(_elem124)
3299  iprot.readListEnd()
3300  else:
3301  iprot.skip(ftype)
3302  else:
3303  iprot.skip(ftype)
3304  iprot.readFieldEnd()
3305  iprot.readStructEnd()
def omnisci.thrift.ttypes.TNodeMemoryInfo.validate (   self)

Definition at line 3341 of file ttypes.py.

3342  def validate(self):
3343  return
def omnisci.thrift.ttypes.TNodeMemoryInfo.write (   self,
  oprot 
)

Definition at line 3306 of file ttypes.py.

References com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.THardwareInfo.host_name, omnisci.thrift.ttypes.TNodeMemoryInfo.host_name, omnisci.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped, omnisci.thrift.ttypes.TNodeMemoryInfo.max_num_pages, omnisci.thrift.ttypes.TNodeMemoryInfo.node_memory_data, omnisci.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated, and omnisci.thrift.ttypes.TNodeMemoryInfo.page_size.

3307  def write(self, oprot):
3308  if oprot._fast_encode is not None and self.thrift_spec is not None:
3309  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3310  return
3311  oprot.writeStructBegin('TNodeMemoryInfo')
3312  if self.host_name is not None:
3313  oprot.writeFieldBegin('host_name', TType.STRING, 1)
3314  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3315  oprot.writeFieldEnd()
3316  if self.page_size is not None:
3317  oprot.writeFieldBegin('page_size', TType.I64, 2)
3318  oprot.writeI64(self.page_size)
3319  oprot.writeFieldEnd()
3320  if self.max_num_pages is not None:
3321  oprot.writeFieldBegin('max_num_pages', TType.I64, 3)
3322  oprot.writeI64(self.max_num_pages)
3323  oprot.writeFieldEnd()
3324  if self.num_pages_allocated is not None:
3325  oprot.writeFieldBegin('num_pages_allocated', TType.I64, 4)
3326  oprot.writeI64(self.num_pages_allocated)
3327  oprot.writeFieldEnd()
3328  if self.is_allocation_capped is not None:
3329  oprot.writeFieldBegin('is_allocation_capped', TType.BOOL, 5)
3330  oprot.writeBool(self.is_allocation_capped)
3331  oprot.writeFieldEnd()
3332  if self.node_memory_data is not None:
3333  oprot.writeFieldBegin('node_memory_data', TType.LIST, 6)
3334  oprot.writeListBegin(TType.STRUCT, len(self.node_memory_data))
3335  for iter125 in self.node_memory_data:
3336  iter125.write(oprot)
3337  oprot.writeListEnd()
3338  oprot.writeFieldEnd()
3339  oprot.writeFieldStop()
3340  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TNodeMemoryInfo.__dict__
private

Definition at line 3350 of file ttypes.py.

omnisci.thrift.ttypes.TNodeMemoryInfo.host_name

Definition at line 3249 of file ttypes.py.

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

omnisci.thrift.ttypes.TNodeMemoryInfo.is_allocation_capped

Definition at line 3253 of file ttypes.py.

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

omnisci.thrift.ttypes.TNodeMemoryInfo.max_num_pages

Definition at line 3251 of file ttypes.py.

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

omnisci.thrift.ttypes.TNodeMemoryInfo.node_memory_data

Definition at line 3254 of file ttypes.py.

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

omnisci.thrift.ttypes.TNodeMemoryInfo.num_pages_allocated

Definition at line 3252 of file ttypes.py.

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

omnisci.thrift.ttypes.TNodeMemoryInfo.page_size

Definition at line 3250 of file ttypes.py.

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


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