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

Constructor & Destructor Documentation

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

Definition at line 344 of file ttypes.py.

345  def __init__(self, val=None, is_null=None,):
346  self.val = val
347  self.is_null = is_null

Member Function Documentation

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

Definition at line 397 of file ttypes.py.

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

Definition at line 400 of file ttypes.py.

401  def __ne__(self, other):
402  return not (self == other)
403 
def omnisci.thrift.ttypes.TDatum.__repr__ (   self)

Definition at line 392 of file ttypes.py.

393  def __repr__(self):
394  L = ['%s=%r' % (key, value)
395  for key, value in self.__dict__.items()]
396  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 348 of file ttypes.py.

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

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

Definition at line 389 of file ttypes.py.

390  def validate(self):
391  return
def omnisci.thrift.ttypes.TDatum.write (   self,
  oprot 
)

Definition at line 373 of file ttypes.py.

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

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

Member Data Documentation

omnisci.thrift.ttypes.TDatum.__dict__
private

Definition at line 398 of file ttypes.py.

omnisci.thrift.ttypes.TDatum.is_null

Definition at line 346 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 345 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: