OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TDatumVal Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TDatumVal:
+ Collaboration diagram for omnisci.thrift.ttypes.TDatumVal:

Public Member Functions

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

Public Attributes

 int_val
 
 real_val
 
 str_val
 
 arr_val
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - int_val
 - real_val
 - str_val
 - arr_val

Definition at line 239 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDatumVal.__init__ (   self,
  int_val = None,
  real_val = None,
  str_val = None,
  arr_val = None 
)

Definition at line 250 of file ttypes.py.

251  def __init__(self, int_val=None, real_val=None, str_val=None, arr_val=None,):
252  self.int_val = int_val
253  self.real_val = real_val
254  self.str_val = str_val
255  self.arr_val = arr_val

Member Function Documentation

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

Definition at line 331 of file ttypes.py.

332  def __eq__(self, other):
333  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDatumVal.__ne__ (   self,
  other 
)

Definition at line 334 of file ttypes.py.

335  def __ne__(self, other):
336  return not (self == other)
337 
def omnisci.thrift.ttypes.TDatumVal.__repr__ (   self)

Definition at line 326 of file ttypes.py.

327  def __repr__(self):
328  L = ['%s=%r' % (key, value)
329  for key, value in self.__dict__.items()]
330  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.TDatumVal.read (   self,
  iprot 
)

Definition at line 256 of file ttypes.py.

References omnisci.thrift.ttypes.TDatumVal.arr_val, omnisci.thrift.ttypes.TDatumVal.int_val, omnisci.thrift.ttypes.TDatumVal.real_val, and omnisci.thrift.ttypes.TDatumVal.str_val.

257  def read(self, iprot):
258  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
259  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
260  return
261  iprot.readStructBegin()
262  while True:
263  (fname, ftype, fid) = iprot.readFieldBegin()
264  if ftype == TType.STOP:
265  break
266  if fid == 1:
267  if ftype == TType.I64:
268  self.int_val = iprot.readI64()
269  else:
270  iprot.skip(ftype)
271  elif fid == 2:
272  if ftype == TType.DOUBLE:
273  self.real_val = iprot.readDouble()
274  else:
275  iprot.skip(ftype)
276  elif fid == 3:
277  if ftype == TType.STRING:
278  self.str_val = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
279  else:
280  iprot.skip(ftype)
281  elif fid == 4:
282  if ftype == TType.LIST:
283  self.arr_val = []
284  (_etype3, _size0) = iprot.readListBegin()
285  for _i4 in range(_size0):
286  _elem5 = TDatum()
287  _elem5.read(iprot)
288  self.arr_val.append(_elem5)
289  iprot.readListEnd()
290  else:
291  iprot.skip(ftype)
292  else:
293  iprot.skip(ftype)
294  iprot.readFieldEnd()
295  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDatumVal.validate (   self)

Definition at line 323 of file ttypes.py.

324  def validate(self):
325  return
def omnisci.thrift.ttypes.TDatumVal.write (   self,
  oprot 
)

Definition at line 296 of file ttypes.py.

References omnisci.thrift.ttypes.TDatumVal.arr_val, omnisci.thrift.ttypes.TDatumVal.int_val, omnisci.thrift.ttypes.TDatumVal.real_val, and omnisci.thrift.ttypes.TDatumVal.str_val.

297  def write(self, oprot):
298  if oprot._fast_encode is not None and self.thrift_spec is not None:
299  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
300  return
301  oprot.writeStructBegin('TDatumVal')
302  if self.int_val is not None:
303  oprot.writeFieldBegin('int_val', TType.I64, 1)
304  oprot.writeI64(self.int_val)
305  oprot.writeFieldEnd()
306  if self.real_val is not None:
307  oprot.writeFieldBegin('real_val', TType.DOUBLE, 2)
308  oprot.writeDouble(self.real_val)
309  oprot.writeFieldEnd()
310  if self.str_val is not None:
311  oprot.writeFieldBegin('str_val', TType.STRING, 3)
312  oprot.writeString(self.str_val.encode('utf-8') if sys.version_info[0] == 2 else self.str_val)
313  oprot.writeFieldEnd()
314  if self.arr_val is not None:
315  oprot.writeFieldBegin('arr_val', TType.LIST, 4)
316  oprot.writeListBegin(TType.STRUCT, len(self.arr_val))
317  for iter6 in self.arr_val:
318  iter6.write(oprot)
319  oprot.writeListEnd()
320  oprot.writeFieldEnd()
321  oprot.writeFieldStop()
322  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDatumVal.__dict__
private

Definition at line 332 of file ttypes.py.

omnisci.thrift.ttypes.TDatumVal.arr_val

Definition at line 254 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatumVal.int_val

Definition at line 251 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatumVal.real_val

Definition at line 252 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatumVal.str_val

Definition at line 253 of file ttypes.py.

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


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