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

Constructor & Destructor Documentation

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

Definition at line 604 of file ttypes.py.

605  def __init__(self, cols=None,):
606  self.cols = cols

Member Function Documentation

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

Definition at line 655 of file ttypes.py.

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

Definition at line 658 of file ttypes.py.

659  def __ne__(self, other):
660  return not (self == other)
661 
def omnisci.thrift.ttypes.TRow.__repr__ (   self)

Definition at line 650 of file ttypes.py.

651  def __repr__(self):
652  L = ['%s=%r' % (key, value)
653  for key, value in self.__dict__.items()]
654  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 607 of file ttypes.py.

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

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

Definition at line 647 of file ttypes.py.

648  def validate(self):
649  return
def omnisci.thrift.ttypes.TRow.write (   self,
  oprot 
)

Definition at line 632 of file ttypes.py.

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

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

Member Data Documentation

omnisci.thrift.ttypes.TRow.__dict__
private

Definition at line 656 of file ttypes.py.

omnisci.thrift.ttypes.TRow.cols

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