OmniSciDB  a5dc49c757
 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 4711 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 4720 of file ttypes.py.

4721  def __init__(self, fixed_len_data=None, var_len_data=None,):
4722  self.fixed_len_data = fixed_len_data
4723  self.var_len_data = var_len_data

Member Function Documentation

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

Definition at line 4781 of file ttypes.py.

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

Definition at line 4784 of file ttypes.py.

4785  def __ne__(self, other):
4786  return not (self == other)
4787 
def heavydb.thrift.ttypes.TDataBlockPtr.__repr__ (   self)

Definition at line 4776 of file ttypes.py.

4777  def __repr__(self):
4778  L = ['%s=%r' % (key, value)
4779  for key, value in self.__dict__.items()]
4780  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 4724 of file ttypes.py.

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

4725  def read(self, iprot):
4726  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4727  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4728  return
4729  iprot.readStructBegin()
4730  while True:
4731  (fname, ftype, fid) = iprot.readFieldBegin()
4732  if ftype == TType.STOP:
4733  break
4734  if fid == 1:
4735  if ftype == TType.STRING:
4736  self.fixed_len_data = iprot.readBinary()
4737  else:
4738  iprot.skip(ftype)
4739  elif fid == 2:
4740  if ftype == TType.LIST:
4741  self.var_len_data = []
4742  (_etype178, _size175) = iprot.readListBegin()
4743  for _i179 in range(_size175):
4744  _elem180 = TVarLen()
4745  _elem180.read(iprot)
4746  self.var_len_data.append(_elem180)
4747  iprot.readListEnd()
4748  else:
4749  iprot.skip(ftype)
4750  else:
4751  iprot.skip(ftype)
4752  iprot.readFieldEnd()
4753  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDataBlockPtr.validate (   self)

Definition at line 4773 of file ttypes.py.

4774  def validate(self):
4775  return
def heavydb.thrift.ttypes.TDataBlockPtr.write (   self,
  oprot 
)

Definition at line 4754 of file ttypes.py.

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

4755  def write(self, oprot):
4756  if oprot._fast_encode is not None and self.thrift_spec is not None:
4757  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4758  return
4759  oprot.writeStructBegin('TDataBlockPtr')
4760  if self.fixed_len_data is not None:
4761  oprot.writeFieldBegin('fixed_len_data', TType.STRING, 1)
4762  oprot.writeBinary(self.fixed_len_data)
4763  oprot.writeFieldEnd()
4764  if self.var_len_data is not None:
4765  oprot.writeFieldBegin('var_len_data', TType.LIST, 2)
4766  oprot.writeListBegin(TType.STRUCT, len(self.var_len_data))
4767  for iter181 in self.var_len_data:
4768  iter181.write(oprot)
4769  oprot.writeListEnd()
4770  oprot.writeFieldEnd()
4771  oprot.writeFieldStop()
4772  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDataBlockPtr.__dict__
private

Definition at line 4782 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDataBlockPtr.fixed_len_data

Definition at line 4721 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 4722 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: