OmniSciDB  a7179b2938
 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 4171 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 4180 of file ttypes.py.

4181  def __init__(self, fixed_len_data=None, var_len_data=None,):
4182  self.fixed_len_data = fixed_len_data
4183  self.var_len_data = var_len_data

Member Function Documentation

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

Definition at line 4241 of file ttypes.py.

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

Definition at line 4244 of file ttypes.py.

4245  def __ne__(self, other):
4246  return not (self == other)
4247 
def omnisci.thrift.ttypes.TDataBlockPtr.__repr__ (   self)

Definition at line 4236 of file ttypes.py.

4237  def __repr__(self):
4238  L = ['%s=%r' % (key, value)
4239  for key, value in self.__dict__.items()]
4240  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 4184 of file ttypes.py.

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

4185  def read(self, iprot):
4186  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4187  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4188  return
4189  iprot.readStructBegin()
4190  while True:
4191  (fname, ftype, fid) = iprot.readFieldBegin()
4192  if ftype == TType.STOP:
4193  break
4194  if fid == 1:
4195  if ftype == TType.STRING:
4196  self.fixed_len_data = iprot.readBinary()
4197  else:
4198  iprot.skip(ftype)
4199  elif fid == 2:
4200  if ftype == TType.LIST:
4201  self.var_len_data = []
4202  (_etype171, _size168) = iprot.readListBegin()
4203  for _i172 in range(_size168):
4204  _elem173 = TVarLen()
4205  _elem173.read(iprot)
4206  self.var_len_data.append(_elem173)
4207  iprot.readListEnd()
4208  else:
4209  iprot.skip(ftype)
4210  else:
4211  iprot.skip(ftype)
4212  iprot.readFieldEnd()
4213  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDataBlockPtr.validate (   self)

Definition at line 4233 of file ttypes.py.

4234  def validate(self):
4235  return
def omnisci.thrift.ttypes.TDataBlockPtr.write (   self,
  oprot 
)

Definition at line 4214 of file ttypes.py.

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

4215  def write(self, oprot):
4216  if oprot._fast_encode is not None and self.thrift_spec is not None:
4217  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4218  return
4219  oprot.writeStructBegin('TDataBlockPtr')
4220  if self.fixed_len_data is not None:
4221  oprot.writeFieldBegin('fixed_len_data', TType.STRING, 1)
4222  oprot.writeBinary(self.fixed_len_data)
4223  oprot.writeFieldEnd()
4224  if self.var_len_data is not None:
4225  oprot.writeFieldBegin('var_len_data', TType.LIST, 2)
4226  oprot.writeListBegin(TType.STRUCT, len(self.var_len_data))
4227  for iter174 in self.var_len_data:
4228  iter174.write(oprot)
4229  oprot.writeListEnd()
4230  oprot.writeFieldEnd()
4231  oprot.writeFieldStop()
4232  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDataBlockPtr.__dict__
private

Definition at line 4242 of file ttypes.py.

omnisci.thrift.ttypes.TDataBlockPtr.fixed_len_data

Definition at line 4181 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 4182 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: