OmniSciDB  340b00dbf6
 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 3104 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 3118 of file ttypes.py.

3119  def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3120  self.slab = slab
3121  self.start_page = start_page
3122  self.num_pages = num_pages
3123  self.touch = touch
3124  self.chunk_key = chunk_key
3125  self.buffer_epoch = buffer_epoch
3126  self.is_free = is_free

Member Function Documentation

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

Definition at line 3228 of file ttypes.py.

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

Definition at line 3231 of file ttypes.py.

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

Definition at line 3223 of file ttypes.py.

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

3128  def read(self, iprot):
3129  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3130  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3131  return
3132  iprot.readStructBegin()
3133  while True:
3134  (fname, ftype, fid) = iprot.readFieldBegin()
3135  if ftype == TType.STOP:
3136  break
3137  if fid == 1:
3138  if ftype == TType.I64:
3139  self.slab = iprot.readI64()
3140  else:
3141  iprot.skip(ftype)
3142  elif fid == 2:
3143  if ftype == TType.I32:
3144  self.start_page = iprot.readI32()
3145  else:
3146  iprot.skip(ftype)
3147  elif fid == 3:
3148  if ftype == TType.I64:
3149  self.num_pages = iprot.readI64()
3150  else:
3151  iprot.skip(ftype)
3152  elif fid == 4:
3153  if ftype == TType.I32:
3154  self.touch = iprot.readI32()
3155  else:
3156  iprot.skip(ftype)
3157  elif fid == 5:
3158  if ftype == TType.LIST:
3159  self.chunk_key = []
3160  (_etype115, _size112) = iprot.readListBegin()
3161  for _i116 in range(_size112):
3162  _elem117 = iprot.readI64()
3163  self.chunk_key.append(_elem117)
3164  iprot.readListEnd()
3165  else:
3166  iprot.skip(ftype)
3167  elif fid == 6:
3168  if ftype == TType.I32:
3169  self.buffer_epoch = iprot.readI32()
3170  else:
3171  iprot.skip(ftype)
3172  elif fid == 7:
3173  if ftype == TType.BOOL:
3174  self.is_free = iprot.readBool()
3175  else:
3176  iprot.skip(ftype)
3177  else:
3178  iprot.skip(ftype)
3179  iprot.readFieldEnd()
3180  iprot.readStructEnd()
def omnisci.thrift.ttypes.TMemoryData.validate (   self)

Definition at line 3220 of file ttypes.py.

3221  def validate(self):
3222  return
def omnisci.thrift.ttypes.TMemoryData.write (   self,
  oprot 
)

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

3182  def write(self, oprot):
3183  if oprot._fast_encode is not None and self.thrift_spec is not None:
3184  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3185  return
3186  oprot.writeStructBegin('TMemoryData')
3187  if self.slab is not None:
3188  oprot.writeFieldBegin('slab', TType.I64, 1)
3189  oprot.writeI64(self.slab)
3190  oprot.writeFieldEnd()
3191  if self.start_page is not None:
3192  oprot.writeFieldBegin('start_page', TType.I32, 2)
3193  oprot.writeI32(self.start_page)
3194  oprot.writeFieldEnd()
3195  if self.num_pages is not None:
3196  oprot.writeFieldBegin('num_pages', TType.I64, 3)
3197  oprot.writeI64(self.num_pages)
3198  oprot.writeFieldEnd()
3199  if self.touch is not None:
3200  oprot.writeFieldBegin('touch', TType.I32, 4)
3201  oprot.writeI32(self.touch)
3202  oprot.writeFieldEnd()
3203  if self.chunk_key is not None:
3204  oprot.writeFieldBegin('chunk_key', TType.LIST, 5)
3205  oprot.writeListBegin(TType.I64, len(self.chunk_key))
3206  for iter118 in self.chunk_key:
3207  oprot.writeI64(iter118)
3208  oprot.writeListEnd()
3209  oprot.writeFieldEnd()
3210  if self.buffer_epoch is not None:
3211  oprot.writeFieldBegin('buffer_epoch', TType.I32, 6)
3212  oprot.writeI32(self.buffer_epoch)
3213  oprot.writeFieldEnd()
3214  if self.is_free is not None:
3215  oprot.writeFieldBegin('is_free', TType.BOOL, 7)
3216  oprot.writeBool(self.is_free)
3217  oprot.writeFieldEnd()
3218  oprot.writeFieldStop()
3219  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TMemoryData.__dict__
private

Definition at line 3229 of file ttypes.py.

omnisci.thrift.ttypes.TMemoryData.buffer_epoch

Definition at line 3124 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 3123 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 3125 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 3121 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 3119 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 3120 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 3122 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: