OmniSciDB  340b00dbf6
 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 4103 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 4112 of file ttypes.py.

4113  def __init__(self, payload=None, is_null=None,):
4114  self.payload = payload
4115  self.is_null = is_null

Member Function Documentation

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

Definition at line 4164 of file ttypes.py.

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

Definition at line 4167 of file ttypes.py.

4168  def __ne__(self, other):
4169  return not (self == other)
4170 
def omnisci.thrift.ttypes.TVarLen.__repr__ (   self)

Definition at line 4159 of file ttypes.py.

4160  def __repr__(self):
4161  L = ['%s=%r' % (key, value)
4162  for key, value in self.__dict__.items()]
4163  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 4116 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, and omnisci.thrift.ttypes.TVarLen.payload.

4117  def read(self, iprot):
4118  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4119  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4120  return
4121  iprot.readStructBegin()
4122  while True:
4123  (fname, ftype, fid) = iprot.readFieldBegin()
4124  if ftype == TType.STOP:
4125  break
4126  if fid == 1:
4127  if ftype == TType.STRING:
4128  self.payload = iprot.readBinary()
4129  else:
4130  iprot.skip(ftype)
4131  elif fid == 2:
4132  if ftype == TType.BOOL:
4133  self.is_null = iprot.readBool()
4134  else:
4135  iprot.skip(ftype)
4136  else:
4137  iprot.skip(ftype)
4138  iprot.readFieldEnd()
4139  iprot.readStructEnd()
def omnisci.thrift.ttypes.TVarLen.validate (   self)

Definition at line 4156 of file ttypes.py.

4157  def validate(self):
4158  return
def omnisci.thrift.ttypes.TVarLen.write (   self,
  oprot 
)

Definition at line 4140 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, and omnisci.thrift.ttypes.TVarLen.payload.

4141  def write(self, oprot):
4142  if oprot._fast_encode is not None and self.thrift_spec is not None:
4143  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4144  return
4145  oprot.writeStructBegin('TVarLen')
4146  if self.payload is not None:
4147  oprot.writeFieldBegin('payload', TType.STRING, 1)
4148  oprot.writeBinary(self.payload)
4149  oprot.writeFieldEnd()
4150  if self.is_null is not None:
4151  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
4152  oprot.writeBool(self.is_null)
4153  oprot.writeFieldEnd()
4154  oprot.writeFieldStop()
4155  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TVarLen.__dict__
private

Definition at line 4165 of file ttypes.py.

omnisci.thrift.ttypes.TVarLen.is_null

Definition at line 4114 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 4113 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: