OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TVarLen Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TVarLen:
+ Collaboration diagram for omnisci.thrift.ttypes.TVarLen:

Public Member Functions

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

Public Attributes

 payload
 
 is_null
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - payload
 - is_null

Definition at line 3983 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TVarLen.__init__ (   self,
  payload = None,
  is_null = None 
)

Definition at line 3992 of file ttypes.py.

3993  def __init__(self, payload=None, is_null=None,):
3994  self.payload = payload
3995  self.is_null = is_null

Member Function Documentation

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

Definition at line 4044 of file ttypes.py.

4045  def __eq__(self, other):
4046  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TVarLen.__ne__ (   self,
  other 
)

Definition at line 4047 of file ttypes.py.

4048  def __ne__(self, other):
4049  return not (self == other)
4050 
def omnisci.thrift.ttypes.TVarLen.__repr__ (   self)

Definition at line 4039 of file ttypes.py.

4040  def __repr__(self):
4041  L = ['%s=%r' % (key, value)
4042  for key, value in self.__dict__.items()]
4043  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.TVarLen.read (   self,
  iprot 
)

Definition at line 3996 of file ttypes.py.

References Analyzer::Constant.is_null, omnisci.thrift.ttypes.TDatum.is_null, omnisci.thrift.ttypes.TStringValue.is_null, omnisci.thrift.ttypes.TVarLen.is_null, com.mapd.parser.extension.ddl.DdlResponse.payload, Parser::AlterTableStmt.payload, and omnisci.thrift.ttypes.TVarLen.payload.

3997  def read(self, iprot):
3998  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3999  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4000  return
4001  iprot.readStructBegin()
4002  while True:
4003  (fname, ftype, fid) = iprot.readFieldBegin()
4004  if ftype == TType.STOP:
4005  break
4006  if fid == 1:
4007  if ftype == TType.STRING:
4008  self.payload = iprot.readBinary()
4009  else:
4010  iprot.skip(ftype)
4011  elif fid == 2:
4012  if ftype == TType.BOOL:
4013  self.is_null = iprot.readBool()
4014  else:
4015  iprot.skip(ftype)
4016  else:
4017  iprot.skip(ftype)
4018  iprot.readFieldEnd()
4019  iprot.readStructEnd()
def omnisci.thrift.ttypes.TVarLen.validate (   self)

Definition at line 4036 of file ttypes.py.

4037  def validate(self):
4038  return
def omnisci.thrift.ttypes.TVarLen.write (   self,
  oprot 
)

Definition at line 4020 of file ttypes.py.

References Analyzer::Constant.is_null, omnisci.thrift.ttypes.TDatum.is_null, omnisci.thrift.ttypes.TStringValue.is_null, omnisci.thrift.ttypes.TVarLen.is_null, com.mapd.parser.extension.ddl.DdlResponse.payload, Parser::AlterTableStmt.payload, and omnisci.thrift.ttypes.TVarLen.payload.

4021  def write(self, oprot):
4022  if oprot._fast_encode is not None and self.thrift_spec is not None:
4023  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4024  return
4025  oprot.writeStructBegin('TVarLen')
4026  if self.payload is not None:
4027  oprot.writeFieldBegin('payload', TType.STRING, 1)
4028  oprot.writeBinary(self.payload)
4029  oprot.writeFieldEnd()
4030  if self.is_null is not None:
4031  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
4032  oprot.writeBool(self.is_null)
4033  oprot.writeFieldEnd()
4034  oprot.writeFieldStop()
4035  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TVarLen.__dict__
private

Definition at line 4045 of file ttypes.py.

omnisci.thrift.ttypes.TVarLen.is_null

Definition at line 3994 of file ttypes.py.

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

omnisci.thrift.ttypes.TVarLen.payload

Definition at line 3993 of file ttypes.py.

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


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