OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TVarLen Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TVarLen:
+ Collaboration diagram for heavydb.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 4456 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 4465 of file ttypes.py.

4466  def __init__(self, payload=None, is_null=None,):
4467  self.payload = payload
4468  self.is_null = is_null

Member Function Documentation

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

Definition at line 4517 of file ttypes.py.

4518  def __eq__(self, other):
4519  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TVarLen.__ne__ (   self,
  other 
)

Definition at line 4520 of file ttypes.py.

4521  def __ne__(self, other):
4522  return not (self == other)
4523 
def heavydb.thrift.ttypes.TVarLen.__repr__ (   self)

Definition at line 4512 of file ttypes.py.

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

Definition at line 4469 of file ttypes.py.

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

4470  def read(self, iprot):
4471  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4472  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4473  return
4474  iprot.readStructBegin()
4475  while True:
4476  (fname, ftype, fid) = iprot.readFieldBegin()
4477  if ftype == TType.STOP:
4478  break
4479  if fid == 1:
4480  if ftype == TType.STRING:
4481  self.payload = iprot.readBinary()
4482  else:
4483  iprot.skip(ftype)
4484  elif fid == 2:
4485  if ftype == TType.BOOL:
4486  self.is_null = iprot.readBool()
4487  else:
4488  iprot.skip(ftype)
4489  else:
4490  iprot.skip(ftype)
4491  iprot.readFieldEnd()
4492  iprot.readStructEnd()
def heavydb.thrift.ttypes.TVarLen.validate (   self)

Definition at line 4509 of file ttypes.py.

4510  def validate(self):
4511  return
def heavydb.thrift.ttypes.TVarLen.write (   self,
  oprot 
)

Definition at line 4493 of file ttypes.py.

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

4494  def write(self, oprot):
4495  if oprot._fast_encode is not None and self.thrift_spec is not None:
4496  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4497  return
4498  oprot.writeStructBegin('TVarLen')
4499  if self.payload is not None:
4500  oprot.writeFieldBegin('payload', TType.STRING, 1)
4501  oprot.writeBinary(self.payload)
4502  oprot.writeFieldEnd()
4503  if self.is_null is not None:
4504  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
4505  oprot.writeBool(self.is_null)
4506  oprot.writeFieldEnd()
4507  oprot.writeFieldStop()
4508  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TVarLen.__dict__
private

Definition at line 4518 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TVarLen.is_null

Definition at line 4467 of file ttypes.py.

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

heavydb.thrift.ttypes.TVarLen.payload

Definition at line 4466 of file ttypes.py.

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


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