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

Constructor & Destructor Documentation

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

2999  def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3000  self.slab = slab
3001  self.start_page = start_page
3002  self.num_pages = num_pages
3003  self.touch = touch
3004  self.chunk_key = chunk_key
3005  self.buffer_epoch = buffer_epoch
3006  self.is_free = is_free

Member Function Documentation

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

Definition at line 3108 of file ttypes.py.

3109  def __eq__(self, other):
3110  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TMemoryData.__ne__ (   self,
  other 
)

Definition at line 3111 of file ttypes.py.

3112  def __ne__(self, other):
3113  return not (self == other)
3114 
def omnisci.thrift.ttypes.TMemoryData.__repr__ (   self)

Definition at line 3103 of file ttypes.py.

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

Definition at line 3007 of file ttypes.py.

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

3008  def read(self, iprot):
3009  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3010  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3011  return
3012  iprot.readStructBegin()
3013  while True:
3014  (fname, ftype, fid) = iprot.readFieldBegin()
3015  if ftype == TType.STOP:
3016  break
3017  if fid == 1:
3018  if ftype == TType.I64:
3019  self.slab = iprot.readI64()
3020  else:
3021  iprot.skip(ftype)
3022  elif fid == 2:
3023  if ftype == TType.I32:
3024  self.start_page = iprot.readI32()
3025  else:
3026  iprot.skip(ftype)
3027  elif fid == 3:
3028  if ftype == TType.I64:
3029  self.num_pages = iprot.readI64()
3030  else:
3031  iprot.skip(ftype)
3032  elif fid == 4:
3033  if ftype == TType.I32:
3034  self.touch = iprot.readI32()
3035  else:
3036  iprot.skip(ftype)
3037  elif fid == 5:
3038  if ftype == TType.LIST:
3039  self.chunk_key = []
3040  (_etype115, _size112) = iprot.readListBegin()
3041  for _i116 in range(_size112):
3042  _elem117 = iprot.readI64()
3043  self.chunk_key.append(_elem117)
3044  iprot.readListEnd()
3045  else:
3046  iprot.skip(ftype)
3047  elif fid == 6:
3048  if ftype == TType.I32:
3049  self.buffer_epoch = iprot.readI32()
3050  else:
3051  iprot.skip(ftype)
3052  elif fid == 7:
3053  if ftype == TType.BOOL:
3054  self.is_free = iprot.readBool()
3055  else:
3056  iprot.skip(ftype)
3057  else:
3058  iprot.skip(ftype)
3059  iprot.readFieldEnd()
3060  iprot.readStructEnd()
def omnisci.thrift.ttypes.TMemoryData.validate (   self)

Definition at line 3100 of file ttypes.py.

3101  def validate(self):
3102  return
def omnisci.thrift.ttypes.TMemoryData.write (   self,
  oprot 
)

Definition at line 3061 of file ttypes.py.

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

3062  def write(self, oprot):
3063  if oprot._fast_encode is not None and self.thrift_spec is not None:
3064  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3065  return
3066  oprot.writeStructBegin('TMemoryData')
3067  if self.slab is not None:
3068  oprot.writeFieldBegin('slab', TType.I64, 1)
3069  oprot.writeI64(self.slab)
3070  oprot.writeFieldEnd()
3071  if self.start_page is not None:
3072  oprot.writeFieldBegin('start_page', TType.I32, 2)
3073  oprot.writeI32(self.start_page)
3074  oprot.writeFieldEnd()
3075  if self.num_pages is not None:
3076  oprot.writeFieldBegin('num_pages', TType.I64, 3)
3077  oprot.writeI64(self.num_pages)
3078  oprot.writeFieldEnd()
3079  if self.touch is not None:
3080  oprot.writeFieldBegin('touch', TType.I32, 4)
3081  oprot.writeI32(self.touch)
3082  oprot.writeFieldEnd()
3083  if self.chunk_key is not None:
3084  oprot.writeFieldBegin('chunk_key', TType.LIST, 5)
3085  oprot.writeListBegin(TType.I64, len(self.chunk_key))
3086  for iter118 in self.chunk_key:
3087  oprot.writeI64(iter118)
3088  oprot.writeListEnd()
3089  oprot.writeFieldEnd()
3090  if self.buffer_epoch is not None:
3091  oprot.writeFieldBegin('buffer_epoch', TType.I32, 6)
3092  oprot.writeI32(self.buffer_epoch)
3093  oprot.writeFieldEnd()
3094  if self.is_free is not None:
3095  oprot.writeFieldBegin('is_free', TType.BOOL, 7)
3096  oprot.writeBool(self.is_free)
3097  oprot.writeFieldEnd()
3098  oprot.writeFieldStop()
3099  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TMemoryData.__dict__
private

Definition at line 3109 of file ttypes.py.

omnisci.thrift.ttypes.TMemoryData.buffer_epoch

Definition at line 3004 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.chunk_key

Definition at line 3003 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.is_free

Definition at line 3005 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.num_pages

Definition at line 3001 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.slab

Definition at line 2999 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.start_page

Definition at line 3000 of file ttypes.py.

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

omnisci.thrift.ttypes.TMemoryData.touch

Definition at line 3002 of file ttypes.py.

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


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