OmniSciDB  fe05a0c208
 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 3115 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 3128 of file ttypes.py.

3129  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,):
3130  self.host_name = host_name
3131  self.page_size = page_size
3132  self.max_num_pages = max_num_pages
3133  self.num_pages_allocated = num_pages_allocated
3134  self.is_allocation_capped = is_allocation_capped
3135  self.node_memory_data = node_memory_data

Member Function Documentation

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

Definition at line 3229 of file ttypes.py.

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

Definition at line 3232 of file ttypes.py.

3233  def __ne__(self, other):
3234  return not (self == other)
3235 
def omnisci.thrift.ttypes.TNodeMemoryInfo.__repr__ (   self)

Definition at line 3224 of file ttypes.py.

3225  def __repr__(self):
3226  L = ['%s=%r' % (key, value)
3227  for key, value in self.__dict__.items()]
3228  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 3136 of file ttypes.py.

References com.omnisci.jdbc.Options.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, DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, and omnisci.thrift.ttypes.TNodeMemoryInfo.page_size.

3137  def read(self, iprot):
3138  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3139  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3140  return
3141  iprot.readStructBegin()
3142  while True:
3143  (fname, ftype, fid) = iprot.readFieldBegin()
3144  if ftype == TType.STOP:
3145  break
3146  if fid == 1:
3147  if ftype == TType.STRING:
3148  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3149  else:
3150  iprot.skip(ftype)
3151  elif fid == 2:
3152  if ftype == TType.I64:
3153  self.page_size = iprot.readI64()
3154  else:
3155  iprot.skip(ftype)
3156  elif fid == 3:
3157  if ftype == TType.I64:
3158  self.max_num_pages = iprot.readI64()
3159  else:
3160  iprot.skip(ftype)
3161  elif fid == 4:
3162  if ftype == TType.I64:
3163  self.num_pages_allocated = iprot.readI64()
3164  else:
3165  iprot.skip(ftype)
3166  elif fid == 5:
3167  if ftype == TType.BOOL:
3168  self.is_allocation_capped = iprot.readBool()
3169  else:
3170  iprot.skip(ftype)
3171  elif fid == 6:
3172  if ftype == TType.LIST:
3173  self.node_memory_data = []
3174  (_etype122, _size119) = iprot.readListBegin()
3175  for _i123 in range(_size119):
3176  _elem124 = TMemoryData()
3177  _elem124.read(iprot)
3178  self.node_memory_data.append(_elem124)
3179  iprot.readListEnd()
3180  else:
3181  iprot.skip(ftype)
3182  else:
3183  iprot.skip(ftype)
3184  iprot.readFieldEnd()
3185  iprot.readStructEnd()
def omnisci.thrift.ttypes.TNodeMemoryInfo.validate (   self)

Definition at line 3221 of file ttypes.py.

3222  def validate(self):
3223  return
def omnisci.thrift.ttypes.TNodeMemoryInfo.write (   self,
  oprot 
)

Definition at line 3186 of file ttypes.py.

References com.omnisci.jdbc.Options.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, DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, and omnisci.thrift.ttypes.TNodeMemoryInfo.page_size.

3187  def write(self, oprot):
3188  if oprot._fast_encode is not None and self.thrift_spec is not None:
3189  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3190  return
3191  oprot.writeStructBegin('TNodeMemoryInfo')
3192  if self.host_name is not None:
3193  oprot.writeFieldBegin('host_name', TType.STRING, 1)
3194  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3195  oprot.writeFieldEnd()
3196  if self.page_size is not None:
3197  oprot.writeFieldBegin('page_size', TType.I64, 2)
3198  oprot.writeI64(self.page_size)
3199  oprot.writeFieldEnd()
3200  if self.max_num_pages is not None:
3201  oprot.writeFieldBegin('max_num_pages', TType.I64, 3)
3202  oprot.writeI64(self.max_num_pages)
3203  oprot.writeFieldEnd()
3204  if self.num_pages_allocated is not None:
3205  oprot.writeFieldBegin('num_pages_allocated', TType.I64, 4)
3206  oprot.writeI64(self.num_pages_allocated)
3207  oprot.writeFieldEnd()
3208  if self.is_allocation_capped is not None:
3209  oprot.writeFieldBegin('is_allocation_capped', TType.BOOL, 5)
3210  oprot.writeBool(self.is_allocation_capped)
3211  oprot.writeFieldEnd()
3212  if self.node_memory_data is not None:
3213  oprot.writeFieldBegin('node_memory_data', TType.LIST, 6)
3214  oprot.writeListBegin(TType.STRUCT, len(self.node_memory_data))
3215  for iter125 in self.node_memory_data:
3216  iter125.write(oprot)
3217  oprot.writeListEnd()
3218  oprot.writeFieldEnd()
3219  oprot.writeFieldStop()
3220  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TNodeMemoryInfo.__dict__
private

Definition at line 3230 of file ttypes.py.

omnisci.thrift.ttypes.TNodeMemoryInfo.host_name

Definition at line 3129 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 3133 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 3131 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 3134 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 3132 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 3130 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: