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

Constructor & Destructor Documentation

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

Definition at line 870 of file ttypes.py.

871  def __init__(self, cols=None,):
872  self.cols = cols

Member Function Documentation

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

Definition at line 921 of file ttypes.py.

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

Definition at line 924 of file ttypes.py.

925  def __ne__(self, other):
926  return not (self == other)
927 
def omnisci.thrift.ttypes.TStringRow.__repr__ (   self)

Definition at line 916 of file ttypes.py.

917  def __repr__(self):
918  L = ['%s=%r' % (key, value)
919  for key, value in self.__dict__.items()]
920  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 873 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.

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

Definition at line 913 of file ttypes.py.

914  def validate(self):
915  return
def omnisci.thrift.ttypes.TStringRow.write (   self,
  oprot 
)

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

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

Member Data Documentation

omnisci.thrift.ttypes.TStringRow.__dict__
private

Definition at line 922 of file ttypes.py.

omnisci.thrift.ttypes.TStringRow.cols

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