OmniSciDB  340b00dbf6
 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 236 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 247 of file ttypes.py.

248  def __init__(self, int_val=None, real_val=None, str_val=None, arr_val=None,):
249  self.int_val = int_val
250  self.real_val = real_val
251  self.str_val = str_val
252  self.arr_val = arr_val

Member Function Documentation

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

Definition at line 328 of file ttypes.py.

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

Definition at line 331 of file ttypes.py.

332  def __ne__(self, other):
333  return not (self == other)
334 
def omnisci.thrift.ttypes.TDatumVal.__repr__ (   self)

Definition at line 323 of file ttypes.py.

324  def __repr__(self):
325  L = ['%s=%r' % (key, value)
326  for key, value in self.__dict__.items()]
327  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 253 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.

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

Definition at line 320 of file ttypes.py.

321  def validate(self):
322  return
def omnisci.thrift.ttypes.TDatumVal.write (   self,
  oprot 
)

Definition at line 293 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.

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

Member Data Documentation

omnisci.thrift.ttypes.TDatumVal.__dict__
private

Definition at line 329 of file ttypes.py.

omnisci.thrift.ttypes.TDatumVal.arr_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.int_val

Definition at line 248 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 249 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 250 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: