OmniSciDB  a5dc49c757
 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 4643 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 4652 of file ttypes.py.

4653  def __init__(self, payload=None, is_null=None,):
4654  self.payload = payload
4655  self.is_null = is_null

Member Function Documentation

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

Definition at line 4704 of file ttypes.py.

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

Definition at line 4707 of file ttypes.py.

4708  def __ne__(self, other):
4709  return not (self == other)
4710 
def heavydb.thrift.ttypes.TVarLen.__repr__ (   self)

Definition at line 4699 of file ttypes.py.

4700  def __repr__(self):
4701  L = ['%s=%r' % (key, value)
4702  for key, value in self.__dict__.items()]
4703  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 4656 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.

4657  def read(self, iprot):
4658  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4659  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4660  return
4661  iprot.readStructBegin()
4662  while True:
4663  (fname, ftype, fid) = iprot.readFieldBegin()
4664  if ftype == TType.STOP:
4665  break
4666  if fid == 1:
4667  if ftype == TType.STRING:
4668  self.payload = iprot.readBinary()
4669  else:
4670  iprot.skip(ftype)
4671  elif fid == 2:
4672  if ftype == TType.BOOL:
4673  self.is_null = iprot.readBool()
4674  else:
4675  iprot.skip(ftype)
4676  else:
4677  iprot.skip(ftype)
4678  iprot.readFieldEnd()
4679  iprot.readStructEnd()
def heavydb.thrift.ttypes.TVarLen.validate (   self)

Definition at line 4696 of file ttypes.py.

4697  def validate(self):
4698  return
def heavydb.thrift.ttypes.TVarLen.write (   self,
  oprot 
)

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

4681  def write(self, oprot):
4682  if oprot._fast_encode is not None and self.thrift_spec is not None:
4683  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4684  return
4685  oprot.writeStructBegin('TVarLen')
4686  if self.payload is not None:
4687  oprot.writeFieldBegin('payload', TType.STRING, 1)
4688  oprot.writeBinary(self.payload)
4689  oprot.writeFieldEnd()
4690  if self.is_null is not None:
4691  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
4692  oprot.writeBool(self.is_null)
4693  oprot.writeFieldEnd()
4694  oprot.writeFieldStop()
4695  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TVarLen.__dict__
private

Definition at line 4705 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TVarLen.is_null

Definition at line 4654 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 4653 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: