OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TRow Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TRow:
+ Collaboration diagram for omnisci.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 599 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 607 of file ttypes.py.

608  def __init__(self, cols=None,):
609  self.cols = cols

Member Function Documentation

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

Definition at line 658 of file ttypes.py.

659  def __eq__(self, other):
660  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TRow.__ne__ (   self,
  other 
)

Definition at line 661 of file ttypes.py.

662  def __ne__(self, other):
663  return not (self == other)
664 
def omnisci.thrift.ttypes.TRow.__repr__ (   self)

Definition at line 653 of file ttypes.py.

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

Definition at line 610 of file ttypes.py.

References omnisci.thrift.ttypes.TRow.cols, and omnisci.thrift.OmniSci.load_table_binary_columnar_args.cols.

611  def read(self, iprot):
612  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
613  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
614  return
615  iprot.readStructBegin()
616  while True:
617  (fname, ftype, fid) = iprot.readFieldBegin()
618  if ftype == TType.STOP:
619  break
620  if fid == 1:
621  if ftype == TType.LIST:
622  self.cols = []
623  (_etype10, _size7) = iprot.readListBegin()
624  for _i11 in range(_size7):
625  _elem12 = TDatum()
626  _elem12.read(iprot)
627  self.cols.append(_elem12)
628  iprot.readListEnd()
629  else:
630  iprot.skip(ftype)
631  else:
632  iprot.skip(ftype)
633  iprot.readFieldEnd()
634  iprot.readStructEnd()
def omnisci.thrift.ttypes.TRow.validate (   self)

Definition at line 650 of file ttypes.py.

651  def validate(self):
652  return
def omnisci.thrift.ttypes.TRow.write (   self,
  oprot 
)

Definition at line 635 of file ttypes.py.

References omnisci.thrift.ttypes.TRow.cols, and omnisci.thrift.OmniSci.load_table_binary_columnar_args.cols.

636  def write(self, oprot):
637  if oprot._fast_encode is not None and self.thrift_spec is not None:
638  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
639  return
640  oprot.writeStructBegin('TRow')
641  if self.cols is not None:
642  oprot.writeFieldBegin('cols', TType.LIST, 1)
643  oprot.writeListBegin(TType.STRUCT, len(self.cols))
644  for iter13 in self.cols:
645  iter13.write(oprot)
646  oprot.writeListEnd()
647  oprot.writeFieldEnd()
648  oprot.writeFieldStop()
649  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TRow.__dict__
private

Definition at line 659 of file ttypes.py.

omnisci.thrift.ttypes.TRow.cols

Definition at line 608 of file ttypes.py.

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


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