OmniSciDB  fe05a0c208
 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 407 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 416 of file ttypes.py.

417  def __init__(self, str_val=None, is_null=None,):
418  self.str_val = str_val
419  self.is_null = is_null

Member Function Documentation

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

Definition at line 468 of file ttypes.py.

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

Definition at line 471 of file ttypes.py.

472  def __ne__(self, other):
473  return not (self == other)
474 
def omnisci.thrift.ttypes.TStringValue.__repr__ (   self)

Definition at line 463 of file ttypes.py.

464  def __repr__(self):
465  L = ['%s=%r' % (key, value)
466  for key, value in self.__dict__.items()]
467  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 420 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.

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

Definition at line 460 of file ttypes.py.

461  def validate(self):
462  return
def omnisci.thrift.ttypes.TStringValue.write (   self,
  oprot 
)

Definition at line 444 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.

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

Member Data Documentation

omnisci.thrift.ttypes.TStringValue.__dict__
private

Definition at line 469 of file ttypes.py.

omnisci.thrift.ttypes.TStringValue.is_null

Definition at line 418 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 417 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: