OmniSciDB  a5dc49c757
 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 3355 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 3369 of file ttypes.py.

3370  def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3371  self.slab = slab
3372  self.start_page = start_page
3373  self.num_pages = num_pages
3374  self.touch = touch
3375  self.chunk_key = chunk_key
3376  self.buffer_epoch = buffer_epoch
3377  self.is_free = is_free

Member Function Documentation

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

Definition at line 3479 of file ttypes.py.

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

Definition at line 3482 of file ttypes.py.

3483  def __ne__(self, other):
3484  return not (self == other)
3485 
def heavydb.thrift.ttypes.TMemoryData.__repr__ (   self)

Definition at line 3474 of file ttypes.py.

3475  def __repr__(self):
3476  L = ['%s=%r' % (key, value)
3477  for key, value in self.__dict__.items()]
3478  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 3378 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.

3379  def read(self, iprot):
3380  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3381  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3382  return
3383  iprot.readStructBegin()
3384  while True:
3385  (fname, ftype, fid) = iprot.readFieldBegin()
3386  if ftype == TType.STOP:
3387  break
3388  if fid == 1:
3389  if ftype == TType.I64:
3390  self.slab = iprot.readI64()
3391  else:
3392  iprot.skip(ftype)
3393  elif fid == 2:
3394  if ftype == TType.I32:
3395  self.start_page = iprot.readI32()
3396  else:
3397  iprot.skip(ftype)
3398  elif fid == 3:
3399  if ftype == TType.I64:
3400  self.num_pages = iprot.readI64()
3401  else:
3402  iprot.skip(ftype)
3403  elif fid == 4:
3404  if ftype == TType.I32:
3405  self.touch = iprot.readI32()
3406  else:
3407  iprot.skip(ftype)
3408  elif fid == 5:
3409  if ftype == TType.LIST:
3410  self.chunk_key = []
3411  (_etype115, _size112) = iprot.readListBegin()
3412  for _i116 in range(_size112):
3413  _elem117 = iprot.readI64()
3414  self.chunk_key.append(_elem117)
3415  iprot.readListEnd()
3416  else:
3417  iprot.skip(ftype)
3418  elif fid == 6:
3419  if ftype == TType.I32:
3420  self.buffer_epoch = iprot.readI32()
3421  else:
3422  iprot.skip(ftype)
3423  elif fid == 7:
3424  if ftype == TType.BOOL:
3425  self.is_free = iprot.readBool()
3426  else:
3427  iprot.skip(ftype)
3428  else:
3429  iprot.skip(ftype)
3430  iprot.readFieldEnd()
3431  iprot.readStructEnd()
def heavydb.thrift.ttypes.TMemoryData.validate (   self)

Definition at line 3471 of file ttypes.py.

3472  def validate(self):
3473  return
def heavydb.thrift.ttypes.TMemoryData.write (   self,
  oprot 
)

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

3433  def write(self, oprot):
3434  if oprot._fast_encode is not None and self.thrift_spec is not None:
3435  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3436  return
3437  oprot.writeStructBegin('TMemoryData')
3438  if self.slab is not None:
3439  oprot.writeFieldBegin('slab', TType.I64, 1)
3440  oprot.writeI64(self.slab)
3441  oprot.writeFieldEnd()
3442  if self.start_page is not None:
3443  oprot.writeFieldBegin('start_page', TType.I32, 2)
3444  oprot.writeI32(self.start_page)
3445  oprot.writeFieldEnd()
3446  if self.num_pages is not None:
3447  oprot.writeFieldBegin('num_pages', TType.I64, 3)
3448  oprot.writeI64(self.num_pages)
3449  oprot.writeFieldEnd()
3450  if self.touch is not None:
3451  oprot.writeFieldBegin('touch', TType.I32, 4)
3452  oprot.writeI32(self.touch)
3453  oprot.writeFieldEnd()
3454  if self.chunk_key is not None:
3455  oprot.writeFieldBegin('chunk_key', TType.LIST, 5)
3456  oprot.writeListBegin(TType.I64, len(self.chunk_key))
3457  for iter118 in self.chunk_key:
3458  oprot.writeI64(iter118)
3459  oprot.writeListEnd()
3460  oprot.writeFieldEnd()
3461  if self.buffer_epoch is not None:
3462  oprot.writeFieldBegin('buffer_epoch', TType.I32, 6)
3463  oprot.writeI32(self.buffer_epoch)
3464  oprot.writeFieldEnd()
3465  if self.is_free is not None:
3466  oprot.writeFieldBegin('is_free', TType.BOOL, 7)
3467  oprot.writeBool(self.is_free)
3468  oprot.writeFieldEnd()
3469  oprot.writeFieldStop()
3470  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TMemoryData.__dict__
private

Definition at line 3480 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TMemoryData.buffer_epoch

Definition at line 3375 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 3374 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 3376 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 3372 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 3370 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 3371 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 3373 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: