OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDatumVal Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDatumVal:
+ Collaboration diagram for heavydb.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 377 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 388 of file ttypes.py.

389  def __init__(self, int_val=None, real_val=None, str_val=None, arr_val=None,):
390  self.int_val = int_val
391  self.real_val = real_val
392  self.str_val = str_val
393  self.arr_val = arr_val

Member Function Documentation

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

Definition at line 469 of file ttypes.py.

470  def __eq__(self, other):
471  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDatumVal.__ne__ (   self,
  other 
)

Definition at line 472 of file ttypes.py.

473  def __ne__(self, other):
474  return not (self == other)
475 
def heavydb.thrift.ttypes.TDatumVal.__repr__ (   self)

Definition at line 464 of file ttypes.py.

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

Definition at line 394 of file ttypes.py.

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

395  def read(self, iprot):
396  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
397  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
398  return
399  iprot.readStructBegin()
400  while True:
401  (fname, ftype, fid) = iprot.readFieldBegin()
402  if ftype == TType.STOP:
403  break
404  if fid == 1:
405  if ftype == TType.I64:
406  self.int_val = iprot.readI64()
407  else:
408  iprot.skip(ftype)
409  elif fid == 2:
410  if ftype == TType.DOUBLE:
411  self.real_val = iprot.readDouble()
412  else:
413  iprot.skip(ftype)
414  elif fid == 3:
415  if ftype == TType.STRING:
416  self.str_val = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
417  else:
418  iprot.skip(ftype)
419  elif fid == 4:
420  if ftype == TType.LIST:
421  self.arr_val = []
422  (_etype3, _size0) = iprot.readListBegin()
423  for _i4 in range(_size0):
424  _elem5 = TDatum()
425  _elem5.read(iprot)
426  self.arr_val.append(_elem5)
427  iprot.readListEnd()
428  else:
429  iprot.skip(ftype)
430  else:
431  iprot.skip(ftype)
432  iprot.readFieldEnd()
433  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDatumVal.validate (   self)

Definition at line 461 of file ttypes.py.

462  def validate(self):
463  return
def heavydb.thrift.ttypes.TDatumVal.write (   self,
  oprot 
)

Definition at line 434 of file ttypes.py.

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

435  def write(self, oprot):
436  if oprot._fast_encode is not None and self.thrift_spec is not None:
437  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
438  return
439  oprot.writeStructBegin('TDatumVal')
440  if self.int_val is not None:
441  oprot.writeFieldBegin('int_val', TType.I64, 1)
442  oprot.writeI64(self.int_val)
443  oprot.writeFieldEnd()
444  if self.real_val is not None:
445  oprot.writeFieldBegin('real_val', TType.DOUBLE, 2)
446  oprot.writeDouble(self.real_val)
447  oprot.writeFieldEnd()
448  if self.str_val is not None:
449  oprot.writeFieldBegin('str_val', TType.STRING, 3)
450  oprot.writeString(self.str_val.encode('utf-8') if sys.version_info[0] == 2 else self.str_val)
451  oprot.writeFieldEnd()
452  if self.arr_val is not None:
453  oprot.writeFieldBegin('arr_val', TType.LIST, 4)
454  oprot.writeListBegin(TType.STRUCT, len(self.arr_val))
455  for iter6 in self.arr_val:
456  iter6.write(oprot)
457  oprot.writeListEnd()
458  oprot.writeFieldEnd()
459  oprot.writeFieldStop()
460  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDatumVal.__dict__
private

Definition at line 470 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDatumVal.arr_val

Definition at line 392 of file ttypes.py.

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

heavydb.thrift.ttypes.TDatumVal.int_val

Definition at line 389 of file ttypes.py.

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

heavydb.thrift.ttypes.TDatumVal.real_val

Definition at line 390 of file ttypes.py.

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

heavydb.thrift.ttypes.TDatumVal.str_val

Definition at line 391 of file ttypes.py.

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


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