OmniSciDB  a575cb28ea
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TStringRow Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TStringRow:
+ Collaboration diagram for omnisci.thrift.ttypes.TStringRow:

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 865 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 873 of file ttypes.py.

874  def __init__(self, cols=None,):
875  self.cols = cols

Member Function Documentation

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

Definition at line 924 of file ttypes.py.

925  def __eq__(self, other):
926  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TStringRow.__ne__ (   self,
  other 
)

Definition at line 927 of file ttypes.py.

928  def __ne__(self, other):
929  return not (self == other)
930 
def omnisci.thrift.ttypes.TStringRow.__repr__ (   self)

Definition at line 919 of file ttypes.py.

920  def __repr__(self):
921  L = ['%s=%r' % (key, value)
922  for key, value in self.__dict__.items()]
923  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.TStringRow.read (   self,
  iprot 
)

Definition at line 876 of file ttypes.py.

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

877  def read(self, iprot):
878  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
879  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
880  return
881  iprot.readStructBegin()
882  while True:
883  (fname, ftype, fid) = iprot.readFieldBegin()
884  if ftype == TType.STOP:
885  break
886  if fid == 1:
887  if ftype == TType.LIST:
888  self.cols = []
889  (_etype52, _size49) = iprot.readListBegin()
890  for _i53 in range(_size49):
891  _elem54 = TStringValue()
892  _elem54.read(iprot)
893  self.cols.append(_elem54)
894  iprot.readListEnd()
895  else:
896  iprot.skip(ftype)
897  else:
898  iprot.skip(ftype)
899  iprot.readFieldEnd()
900  iprot.readStructEnd()
def omnisci.thrift.ttypes.TStringRow.validate (   self)

Definition at line 916 of file ttypes.py.

917  def validate(self):
918  return
def omnisci.thrift.ttypes.TStringRow.write (   self,
  oprot 
)

Definition at line 901 of file ttypes.py.

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

902  def write(self, oprot):
903  if oprot._fast_encode is not None and self.thrift_spec is not None:
904  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
905  return
906  oprot.writeStructBegin('TStringRow')
907  if self.cols is not None:
908  oprot.writeFieldBegin('cols', TType.LIST, 1)
909  oprot.writeListBegin(TType.STRUCT, len(self.cols))
910  for iter55 in self.cols:
911  iter55.write(oprot)
912  oprot.writeListEnd()
913  oprot.writeFieldEnd()
914  oprot.writeFieldStop()
915  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TStringRow.__dict__
private

Definition at line 925 of file ttypes.py.

omnisci.thrift.ttypes.TStringRow.cols

Definition at line 874 of file ttypes.py.

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


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