OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TStringValue Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TStringValue:
+ Collaboration diagram for heavydb.thrift.ttypes.TStringValue:

Public Member Functions

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

Public Attributes

 str_val
 
 is_null
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - str_val
 - is_null

Definition at line 545 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TStringValue.__init__ (   self,
  str_val = None,
  is_null = None 
)

Definition at line 554 of file ttypes.py.

555  def __init__(self, str_val=None, is_null=None,):
556  self.str_val = str_val
557  self.is_null = is_null

Member Function Documentation

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

Definition at line 606 of file ttypes.py.

607  def __eq__(self, other):
608  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TStringValue.__ne__ (   self,
  other 
)

Definition at line 609 of file ttypes.py.

610  def __ne__(self, other):
611  return not (self == other)
612 
def heavydb.thrift.ttypes.TStringValue.__repr__ (   self)

Definition at line 601 of file ttypes.py.

602  def __repr__(self):
603  L = ['%s=%r' % (key, value)
604  for key, value in self.__dict__.items()]
605  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.TStringValue.read (   self,
  iprot 
)

Definition at line 558 of file ttypes.py.

References Analyzer::Constant.is_null, heavydb.thrift.ttypes.TDatum.is_null, heavydb.thrift.ttypes.TStringValue.is_null, heavydb.thrift.ttypes.TDatumVal.str_val, and heavydb.thrift.ttypes.TStringValue.str_val.

559  def read(self, iprot):
560  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
561  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
562  return
563  iprot.readStructBegin()
564  while True:
565  (fname, ftype, fid) = iprot.readFieldBegin()
566  if ftype == TType.STOP:
567  break
568  if fid == 1:
569  if ftype == TType.STRING:
570  self.str_val = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
571  else:
572  iprot.skip(ftype)
573  elif fid == 2:
574  if ftype == TType.BOOL:
575  self.is_null = iprot.readBool()
576  else:
577  iprot.skip(ftype)
578  else:
579  iprot.skip(ftype)
580  iprot.readFieldEnd()
581  iprot.readStructEnd()
def heavydb.thrift.ttypes.TStringValue.validate (   self)

Definition at line 598 of file ttypes.py.

599  def validate(self):
600  return
def heavydb.thrift.ttypes.TStringValue.write (   self,
  oprot 
)

Definition at line 582 of file ttypes.py.

References Analyzer::Constant.is_null, heavydb.thrift.ttypes.TDatum.is_null, heavydb.thrift.ttypes.TStringValue.is_null, heavydb.thrift.ttypes.TDatumVal.str_val, and heavydb.thrift.ttypes.TStringValue.str_val.

583  def write(self, oprot):
584  if oprot._fast_encode is not None and self.thrift_spec is not None:
585  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
586  return
587  oprot.writeStructBegin('TStringValue')
588  if self.str_val is not None:
589  oprot.writeFieldBegin('str_val', TType.STRING, 1)
590  oprot.writeString(self.str_val.encode('utf-8') if sys.version_info[0] == 2 else self.str_val)
591  oprot.writeFieldEnd()
592  if self.is_null is not None:
593  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
594  oprot.writeBool(self.is_null)
595  oprot.writeFieldEnd()
596  oprot.writeFieldStop()
597  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TStringValue.__dict__
private

Definition at line 607 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TStringValue.is_null

Definition at line 556 of file ttypes.py.

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

heavydb.thrift.ttypes.TStringValue.str_val

Definition at line 555 of file ttypes.py.

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


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