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

Constructor & Destructor Documentation

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

Definition at line 4060 of file ttypes.py.

4061  def __init__(self, fixed_len_data=None, var_len_data=None,):
4062  self.fixed_len_data = fixed_len_data
4063  self.var_len_data = var_len_data

Member Function Documentation

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

Definition at line 4121 of file ttypes.py.

4122  def __eq__(self, other):
4123  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDataBlockPtr.__ne__ (   self,
  other 
)

Definition at line 4124 of file ttypes.py.

4125  def __ne__(self, other):
4126  return not (self == other)
4127 
def omnisci.thrift.ttypes.TDataBlockPtr.__repr__ (   self)

Definition at line 4116 of file ttypes.py.

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

Definition at line 4064 of file ttypes.py.

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

4065  def read(self, iprot):
4066  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4067  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4068  return
4069  iprot.readStructBegin()
4070  while True:
4071  (fname, ftype, fid) = iprot.readFieldBegin()
4072  if ftype == TType.STOP:
4073  break
4074  if fid == 1:
4075  if ftype == TType.STRING:
4076  self.fixed_len_data = iprot.readBinary()
4077  else:
4078  iprot.skip(ftype)
4079  elif fid == 2:
4080  if ftype == TType.LIST:
4081  self.var_len_data = []
4082  (_etype171, _size168) = iprot.readListBegin()
4083  for _i172 in range(_size168):
4084  _elem173 = TVarLen()
4085  _elem173.read(iprot)
4086  self.var_len_data.append(_elem173)
4087  iprot.readListEnd()
4088  else:
4089  iprot.skip(ftype)
4090  else:
4091  iprot.skip(ftype)
4092  iprot.readFieldEnd()
4093  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDataBlockPtr.validate (   self)

Definition at line 4113 of file ttypes.py.

4114  def validate(self):
4115  return
def omnisci.thrift.ttypes.TDataBlockPtr.write (   self,
  oprot 
)

Definition at line 4094 of file ttypes.py.

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

4095  def write(self, oprot):
4096  if oprot._fast_encode is not None and self.thrift_spec is not None:
4097  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4098  return
4099  oprot.writeStructBegin('TDataBlockPtr')
4100  if self.fixed_len_data is not None:
4101  oprot.writeFieldBegin('fixed_len_data', TType.STRING, 1)
4102  oprot.writeBinary(self.fixed_len_data)
4103  oprot.writeFieldEnd()
4104  if self.var_len_data is not None:
4105  oprot.writeFieldBegin('var_len_data', TType.LIST, 2)
4106  oprot.writeListBegin(TType.STRUCT, len(self.var_len_data))
4107  for iter174 in self.var_len_data:
4108  iter174.write(oprot)
4109  oprot.writeListEnd()
4110  oprot.writeFieldEnd()
4111  oprot.writeFieldStop()
4112  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDataBlockPtr.__dict__
private

Definition at line 4122 of file ttypes.py.

omnisci.thrift.ttypes.TDataBlockPtr.fixed_len_data

Definition at line 4061 of file ttypes.py.

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

omnisci.thrift.ttypes.TDataBlockPtr.var_len_data

Definition at line 4062 of file ttypes.py.

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


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