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

Public Member Functions

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

Public Attributes

 slab
 
 start_page
 
 num_pages
 
 touch
 
 chunk_key
 
 buffer_epoch
 
 is_free
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - slab
 - start_page
 - num_pages
 - touch
 - chunk_key
 - buffer_epoch
 - is_free

Definition at line 3311 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TMemoryData.__init__ (   self,
  slab = None,
  start_page = None,
  num_pages = None,
  touch = None,
  chunk_key = None,
  buffer_epoch = None,
  is_free = None 
)

Definition at line 3325 of file ttypes.py.

3326  def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3327  self.slab = slab
3328  self.start_page = start_page
3329  self.num_pages = num_pages
3330  self.touch = touch
3331  self.chunk_key = chunk_key
3332  self.buffer_epoch = buffer_epoch
3333  self.is_free = is_free

Member Function Documentation

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

Definition at line 3435 of file ttypes.py.

3436  def __eq__(self, other):
3437  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TMemoryData.__ne__ (   self,
  other 
)

Definition at line 3438 of file ttypes.py.

3439  def __ne__(self, other):
3440  return not (self == other)
3441 
def heavydb.thrift.ttypes.TMemoryData.__repr__ (   self)

Definition at line 3430 of file ttypes.py.

3431  def __repr__(self):
3432  L = ['%s=%r' % (key, value)
3433  for key, value in self.__dict__.items()]
3434  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.TMemoryData.read (   self,
  iprot 
)

Definition at line 3334 of file ttypes.py.

References heavydb.thrift.ttypes.TMemoryData.buffer_epoch, ForeignStorageColumnBuffer.chunk_key, Buffer_Namespace::BufferSeg.chunk_key, Data_Namespace::MemoryData.chunk_key, heavydb.thrift.ttypes.TMemoryData.chunk_key, heavydb.thrift.ttypes.TMemoryData.is_free, Buffer_Namespace::BufferSeg.num_pages, TableMetadata.num_pages, File_Namespace::FileMetadata.num_pages, heavydb.thrift.ttypes.TMemoryData.num_pages, heavydb.thrift.ttypes.TMemoryData.slab, Buffer_Namespace::BufferSeg.start_page, heavydb.thrift.ttypes.TMemoryData.start_page, Data_Namespace::MemoryData.touch, and heavydb.thrift.ttypes.TMemoryData.touch.

3335  def read(self, iprot):
3336  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3337  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3338  return
3339  iprot.readStructBegin()
3340  while True:
3341  (fname, ftype, fid) = iprot.readFieldBegin()
3342  if ftype == TType.STOP:
3343  break
3344  if fid == 1:
3345  if ftype == TType.I64:
3346  self.slab = iprot.readI64()
3347  else:
3348  iprot.skip(ftype)
3349  elif fid == 2:
3350  if ftype == TType.I32:
3351  self.start_page = iprot.readI32()
3352  else:
3353  iprot.skip(ftype)
3354  elif fid == 3:
3355  if ftype == TType.I64:
3356  self.num_pages = iprot.readI64()
3357  else:
3358  iprot.skip(ftype)
3359  elif fid == 4:
3360  if ftype == TType.I32:
3361  self.touch = iprot.readI32()
3362  else:
3363  iprot.skip(ftype)
3364  elif fid == 5:
3365  if ftype == TType.LIST:
3366  self.chunk_key = []
3367  (_etype115, _size112) = iprot.readListBegin()
3368  for _i116 in range(_size112):
3369  _elem117 = iprot.readI64()
3370  self.chunk_key.append(_elem117)
3371  iprot.readListEnd()
3372  else:
3373  iprot.skip(ftype)
3374  elif fid == 6:
3375  if ftype == TType.I32:
3376  self.buffer_epoch = iprot.readI32()
3377  else:
3378  iprot.skip(ftype)
3379  elif fid == 7:
3380  if ftype == TType.BOOL:
3381  self.is_free = iprot.readBool()
3382  else:
3383  iprot.skip(ftype)
3384  else:
3385  iprot.skip(ftype)
3386  iprot.readFieldEnd()
3387  iprot.readStructEnd()
def heavydb.thrift.ttypes.TMemoryData.validate (   self)

Definition at line 3427 of file ttypes.py.

3428  def validate(self):
3429  return
def heavydb.thrift.ttypes.TMemoryData.write (   self,
  oprot 
)

Definition at line 3388 of file ttypes.py.

References heavydb.thrift.ttypes.TMemoryData.buffer_epoch, ForeignStorageColumnBuffer.chunk_key, Buffer_Namespace::BufferSeg.chunk_key, Data_Namespace::MemoryData.chunk_key, heavydb.thrift.ttypes.TMemoryData.chunk_key, heavydb.thrift.ttypes.TMemoryData.is_free, Buffer_Namespace::BufferSeg.num_pages, TableMetadata.num_pages, File_Namespace::FileMetadata.num_pages, heavydb.thrift.ttypes.TMemoryData.num_pages, heavydb.thrift.ttypes.TMemoryData.slab, Buffer_Namespace::BufferSeg.start_page, heavydb.thrift.ttypes.TMemoryData.start_page, Data_Namespace::MemoryData.touch, and heavydb.thrift.ttypes.TMemoryData.touch.

3389  def write(self, oprot):
3390  if oprot._fast_encode is not None and self.thrift_spec is not None:
3391  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3392  return
3393  oprot.writeStructBegin('TMemoryData')
3394  if self.slab is not None:
3395  oprot.writeFieldBegin('slab', TType.I64, 1)
3396  oprot.writeI64(self.slab)
3397  oprot.writeFieldEnd()
3398  if self.start_page is not None:
3399  oprot.writeFieldBegin('start_page', TType.I32, 2)
3400  oprot.writeI32(self.start_page)
3401  oprot.writeFieldEnd()
3402  if self.num_pages is not None:
3403  oprot.writeFieldBegin('num_pages', TType.I64, 3)
3404  oprot.writeI64(self.num_pages)
3405  oprot.writeFieldEnd()
3406  if self.touch is not None:
3407  oprot.writeFieldBegin('touch', TType.I32, 4)
3408  oprot.writeI32(self.touch)
3409  oprot.writeFieldEnd()
3410  if self.chunk_key is not None:
3411  oprot.writeFieldBegin('chunk_key', TType.LIST, 5)
3412  oprot.writeListBegin(TType.I64, len(self.chunk_key))
3413  for iter118 in self.chunk_key:
3414  oprot.writeI64(iter118)
3415  oprot.writeListEnd()
3416  oprot.writeFieldEnd()
3417  if self.buffer_epoch is not None:
3418  oprot.writeFieldBegin('buffer_epoch', TType.I32, 6)
3419  oprot.writeI32(self.buffer_epoch)
3420  oprot.writeFieldEnd()
3421  if self.is_free is not None:
3422  oprot.writeFieldBegin('is_free', TType.BOOL, 7)
3423  oprot.writeBool(self.is_free)
3424  oprot.writeFieldEnd()
3425  oprot.writeFieldStop()
3426  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TMemoryData.__dict__
private

Definition at line 3436 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TMemoryData.buffer_epoch

Definition at line 3331 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.chunk_key

Definition at line 3330 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.is_free

Definition at line 3332 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.num_pages

Definition at line 3328 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.slab

Definition at line 3326 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.start_page

Definition at line 3327 of file ttypes.py.

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

heavydb.thrift.ttypes.TMemoryData.touch

Definition at line 3329 of file ttypes.py.

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


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