OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TStringValue Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TStringValue:
+ Collaboration diagram for omnisci.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 404 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 413 of file ttypes.py.

414  def __init__(self, str_val=None, is_null=None,):
415  self.str_val = str_val
416  self.is_null = is_null

Member Function Documentation

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

Definition at line 465 of file ttypes.py.

466  def __eq__(self, other):
467  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TStringValue.__ne__ (   self,
  other 
)

Definition at line 468 of file ttypes.py.

469  def __ne__(self, other):
470  return not (self == other)
471 
def omnisci.thrift.ttypes.TStringValue.__repr__ (   self)

Definition at line 460 of file ttypes.py.

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

Definition at line 417 of file ttypes.py.

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

418  def read(self, iprot):
419  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
420  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
421  return
422  iprot.readStructBegin()
423  while True:
424  (fname, ftype, fid) = iprot.readFieldBegin()
425  if ftype == TType.STOP:
426  break
427  if fid == 1:
428  if ftype == TType.STRING:
429  self.str_val = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
430  else:
431  iprot.skip(ftype)
432  elif fid == 2:
433  if ftype == TType.BOOL:
434  self.is_null = iprot.readBool()
435  else:
436  iprot.skip(ftype)
437  else:
438  iprot.skip(ftype)
439  iprot.readFieldEnd()
440  iprot.readStructEnd()
def omnisci.thrift.ttypes.TStringValue.validate (   self)

Definition at line 457 of file ttypes.py.

458  def validate(self):
459  return
def omnisci.thrift.ttypes.TStringValue.write (   self,
  oprot 
)

Definition at line 441 of file ttypes.py.

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

442  def write(self, oprot):
443  if oprot._fast_encode is not None and self.thrift_spec is not None:
444  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
445  return
446  oprot.writeStructBegin('TStringValue')
447  if self.str_val is not None:
448  oprot.writeFieldBegin('str_val', TType.STRING, 1)
449  oprot.writeString(self.str_val.encode('utf-8') if sys.version_info[0] == 2 else self.str_val)
450  oprot.writeFieldEnd()
451  if self.is_null is not None:
452  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
453  oprot.writeBool(self.is_null)
454  oprot.writeFieldEnd()
455  oprot.writeFieldStop()
456  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TStringValue.__dict__
private

Definition at line 466 of file ttypes.py.

omnisci.thrift.ttypes.TStringValue.is_null

Definition at line 415 of file ttypes.py.

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

omnisci.thrift.ttypes.TStringValue.str_val

Definition at line 414 of file ttypes.py.

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


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