OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TRow Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TRow:
+ Collaboration diagram for heavydb.thrift.ttypes.TRow:

Public Member Functions

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

Public Attributes

 cols
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - cols

Definition at line 748 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TRow.__init__ (   self,
  cols = None 
)

Definition at line 756 of file ttypes.py.

757  def __init__(self, cols=None,):
758  self.cols = cols

Member Function Documentation

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

Definition at line 807 of file ttypes.py.

808  def __eq__(self, other):
809  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TRow.__ne__ (   self,
  other 
)

Definition at line 810 of file ttypes.py.

811  def __ne__(self, other):
812  return not (self == other)
813 
def heavydb.thrift.ttypes.TRow.__repr__ (   self)

Definition at line 802 of file ttypes.py.

803  def __repr__(self):
804  L = ['%s=%r' % (key, value)
805  for key, value in self.__dict__.items()]
806  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.TRow.read (   self,
  iprot 
)

Definition at line 759 of file ttypes.py.

References heavydb.thrift.ttypes.TRow.cols, and heavydb.thrift.Heavy.load_table_binary_columnar_args.cols.

760  def read(self, iprot):
761  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
762  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
763  return
764  iprot.readStructBegin()
765  while True:
766  (fname, ftype, fid) = iprot.readFieldBegin()
767  if ftype == TType.STOP:
768  break
769  if fid == 1:
770  if ftype == TType.LIST:
771  self.cols = []
772  (_etype10, _size7) = iprot.readListBegin()
773  for _i11 in range(_size7):
774  _elem12 = TDatum()
775  _elem12.read(iprot)
776  self.cols.append(_elem12)
777  iprot.readListEnd()
778  else:
779  iprot.skip(ftype)
780  else:
781  iprot.skip(ftype)
782  iprot.readFieldEnd()
783  iprot.readStructEnd()
def heavydb.thrift.ttypes.TRow.validate (   self)

Definition at line 799 of file ttypes.py.

800  def validate(self):
801  return
def heavydb.thrift.ttypes.TRow.write (   self,
  oprot 
)

Definition at line 784 of file ttypes.py.

References heavydb.thrift.ttypes.TRow.cols, and heavydb.thrift.Heavy.load_table_binary_columnar_args.cols.

785  def write(self, oprot):
786  if oprot._fast_encode is not None and self.thrift_spec is not None:
787  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
788  return
789  oprot.writeStructBegin('TRow')
790  if self.cols is not None:
791  oprot.writeFieldBegin('cols', TType.LIST, 1)
792  oprot.writeListBegin(TType.STRUCT, len(self.cols))
793  for iter13 in self.cols:
794  iter13.write(oprot)
795  oprot.writeListEnd()
796  oprot.writeFieldEnd()
797  oprot.writeFieldStop()
798  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TRow.__dict__
private

Definition at line 808 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TRow.cols

Definition at line 757 of file ttypes.py.

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


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