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

Public Member Functions

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

Public Attributes

 val
 
 is_null
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - val
 - is_null

Definition at line 338 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDatum.__init__ (   self,
  val = None,
  is_null = None 
)

Definition at line 347 of file ttypes.py.

348  def __init__(self, val=None, is_null=None,):
349  self.val = val
350  self.is_null = is_null

Member Function Documentation

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

Definition at line 400 of file ttypes.py.

401  def __eq__(self, other):
402  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDatum.__ne__ (   self,
  other 
)

Definition at line 403 of file ttypes.py.

404  def __ne__(self, other):
405  return not (self == other)
406 
def omnisci.thrift.ttypes.TDatum.__repr__ (   self)

Definition at line 395 of file ttypes.py.

396  def __repr__(self):
397  L = ['%s=%r' % (key, value)
398  for key, value in self.__dict__.items()]
399  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.TDatum.read (   self,
  iprot 
)

Definition at line 351 of file ttypes.py.

References Analyzer::Constant.is_null, omnisci.thrift.ttypes.TDatum.is_null, and omnisci.thrift.ttypes.TDatum.val.

352  def read(self, iprot):
353  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
354  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
355  return
356  iprot.readStructBegin()
357  while True:
358  (fname, ftype, fid) = iprot.readFieldBegin()
359  if ftype == TType.STOP:
360  break
361  if fid == 1:
362  if ftype == TType.STRUCT:
363  self.val = TDatumVal()
364  self.val.read(iprot)
365  else:
366  iprot.skip(ftype)
367  elif fid == 2:
368  if ftype == TType.BOOL:
369  self.is_null = iprot.readBool()
370  else:
371  iprot.skip(ftype)
372  else:
373  iprot.skip(ftype)
374  iprot.readFieldEnd()
375  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDatum.validate (   self)

Definition at line 392 of file ttypes.py.

393  def validate(self):
394  return
def omnisci.thrift.ttypes.TDatum.write (   self,
  oprot 
)

Definition at line 376 of file ttypes.py.

References Analyzer::Constant.is_null, omnisci.thrift.ttypes.TDatum.is_null, and omnisci.thrift.ttypes.TDatum.val.

377  def write(self, oprot):
378  if oprot._fast_encode is not None and self.thrift_spec is not None:
379  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
380  return
381  oprot.writeStructBegin('TDatum')
382  if self.val is not None:
383  oprot.writeFieldBegin('val', TType.STRUCT, 1)
384  self.val.write(oprot)
385  oprot.writeFieldEnd()
386  if self.is_null is not None:
387  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
388  oprot.writeBool(self.is_null)
389  oprot.writeFieldEnd()
390  oprot.writeFieldStop()
391  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDatum.__dict__
private

Definition at line 401 of file ttypes.py.

omnisci.thrift.ttypes.TDatum.is_null

Definition at line 349 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatum.val

Definition at line 348 of file ttypes.py.

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


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