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

Public Member Functions

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

Public Attributes

 fixed_len_data
 
 var_len_data
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - fixed_len_data
 - var_len_data

Definition at line 4524 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDataBlockPtr.__init__ (   self,
  fixed_len_data = None,
  var_len_data = None 
)

Definition at line 4533 of file ttypes.py.

4534  def __init__(self, fixed_len_data=None, var_len_data=None,):
4535  self.fixed_len_data = fixed_len_data
4536  self.var_len_data = var_len_data

Member Function Documentation

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

Definition at line 4594 of file ttypes.py.

4595  def __eq__(self, other):
4596  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDataBlockPtr.__ne__ (   self,
  other 
)

Definition at line 4597 of file ttypes.py.

4598  def __ne__(self, other):
4599  return not (self == other)
4600 
def heavydb.thrift.ttypes.TDataBlockPtr.__repr__ (   self)

Definition at line 4589 of file ttypes.py.

4590  def __repr__(self):
4591  L = ['%s=%r' % (key, value)
4592  for key, value in self.__dict__.items()]
4593  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.TDataBlockPtr.read (   self,
  iprot 
)

Definition at line 4537 of file ttypes.py.

References heavydb.thrift.ttypes.TDataBlockPtr.fixed_len_data, and heavydb.thrift.ttypes.TDataBlockPtr.var_len_data.

4538  def read(self, iprot):
4539  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4540  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4541  return
4542  iprot.readStructBegin()
4543  while True:
4544  (fname, ftype, fid) = iprot.readFieldBegin()
4545  if ftype == TType.STOP:
4546  break
4547  if fid == 1:
4548  if ftype == TType.STRING:
4549  self.fixed_len_data = iprot.readBinary()
4550  else:
4551  iprot.skip(ftype)
4552  elif fid == 2:
4553  if ftype == TType.LIST:
4554  self.var_len_data = []
4555  (_etype171, _size168) = iprot.readListBegin()
4556  for _i172 in range(_size168):
4557  _elem173 = TVarLen()
4558  _elem173.read(iprot)
4559  self.var_len_data.append(_elem173)
4560  iprot.readListEnd()
4561  else:
4562  iprot.skip(ftype)
4563  else:
4564  iprot.skip(ftype)
4565  iprot.readFieldEnd()
4566  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDataBlockPtr.validate (   self)

Definition at line 4586 of file ttypes.py.

4587  def validate(self):
4588  return
def heavydb.thrift.ttypes.TDataBlockPtr.write (   self,
  oprot 
)

Definition at line 4567 of file ttypes.py.

References heavydb.thrift.ttypes.TDataBlockPtr.fixed_len_data, and heavydb.thrift.ttypes.TDataBlockPtr.var_len_data.

4568  def write(self, oprot):
4569  if oprot._fast_encode is not None and self.thrift_spec is not None:
4570  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4571  return
4572  oprot.writeStructBegin('TDataBlockPtr')
4573  if self.fixed_len_data is not None:
4574  oprot.writeFieldBegin('fixed_len_data', TType.STRING, 1)
4575  oprot.writeBinary(self.fixed_len_data)
4576  oprot.writeFieldEnd()
4577  if self.var_len_data is not None:
4578  oprot.writeFieldBegin('var_len_data', TType.LIST, 2)
4579  oprot.writeListBegin(TType.STRUCT, len(self.var_len_data))
4580  for iter174 in self.var_len_data:
4581  iter174.write(oprot)
4582  oprot.writeListEnd()
4583  oprot.writeFieldEnd()
4584  oprot.writeFieldStop()
4585  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDataBlockPtr.__dict__
private

Definition at line 4595 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TDataBlockPtr.fixed_len_data

Definition at line 4534 of file ttypes.py.

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

heavydb.thrift.ttypes.TDataBlockPtr.var_len_data

Definition at line 4535 of file ttypes.py.

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


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