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

Constructor & Destructor Documentation

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

Definition at line 485 of file ttypes.py.

486  def __init__(self, val=None, is_null=None,):
487  self.val = val
488  self.is_null = is_null

Member Function Documentation

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

Definition at line 538 of file ttypes.py.

539  def __eq__(self, other):
540  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDatum.__ne__ (   self,
  other 
)

Definition at line 541 of file ttypes.py.

542  def __ne__(self, other):
543  return not (self == other)
544 
def heavydb.thrift.ttypes.TDatum.__repr__ (   self)

Definition at line 533 of file ttypes.py.

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

Definition at line 489 of file ttypes.py.

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

490  def read(self, iprot):
491  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
492  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
493  return
494  iprot.readStructBegin()
495  while True:
496  (fname, ftype, fid) = iprot.readFieldBegin()
497  if ftype == TType.STOP:
498  break
499  if fid == 1:
500  if ftype == TType.STRUCT:
501  self.val = TDatumVal()
502  self.val.read(iprot)
503  else:
504  iprot.skip(ftype)
505  elif fid == 2:
506  if ftype == TType.BOOL:
507  self.is_null = iprot.readBool()
508  else:
509  iprot.skip(ftype)
510  else:
511  iprot.skip(ftype)
512  iprot.readFieldEnd()
513  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDatum.validate (   self)

Definition at line 530 of file ttypes.py.

531  def validate(self):
532  return
def heavydb.thrift.ttypes.TDatum.write (   self,
  oprot 
)

Definition at line 514 of file ttypes.py.

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

515  def write(self, oprot):
516  if oprot._fast_encode is not None and self.thrift_spec is not None:
517  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
518  return
519  oprot.writeStructBegin('TDatum')
520  if self.val is not None:
521  oprot.writeFieldBegin('val', TType.STRUCT, 1)
522  self.val.write(oprot)
523  oprot.writeFieldEnd()
524  if self.is_null is not None:
525  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
526  oprot.writeBool(self.is_null)
527  oprot.writeFieldEnd()
528  oprot.writeFieldStop()
529  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDatum.__dict__
private

Definition at line 539 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDatum.is_null

Definition at line 487 of file ttypes.py.

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

heavydb.thrift.ttypes.TDatum.val

Definition at line 486 of file ttypes.py.

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


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