OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TStringRow Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TStringRow:
+ Collaboration diagram for heavydb.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 1014 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 1022 of file ttypes.py.

1023  def __init__(self, cols=None,):
1024  self.cols = cols

Member Function Documentation

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

Definition at line 1073 of file ttypes.py.

1074  def __eq__(self, other):
1075  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TStringRow.__ne__ (   self,
  other 
)

Definition at line 1076 of file ttypes.py.

1077  def __ne__(self, other):
1078  return not (self == other)
1079 
def heavydb.thrift.ttypes.TStringRow.__repr__ (   self)

Definition at line 1068 of file ttypes.py.

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

Definition at line 1025 of file ttypes.py.

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

1026  def read(self, iprot):
1027  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1028  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1029  return
1030  iprot.readStructBegin()
1031  while True:
1032  (fname, ftype, fid) = iprot.readFieldBegin()
1033  if ftype == TType.STOP:
1034  break
1035  if fid == 1:
1036  if ftype == TType.LIST:
1037  self.cols = []
1038  (_etype52, _size49) = iprot.readListBegin()
1039  for _i53 in range(_size49):
1040  _elem54 = TStringValue()
1041  _elem54.read(iprot)
1042  self.cols.append(_elem54)
1043  iprot.readListEnd()
1044  else:
1045  iprot.skip(ftype)
1046  else:
1047  iprot.skip(ftype)
1048  iprot.readFieldEnd()
1049  iprot.readStructEnd()
def heavydb.thrift.ttypes.TStringRow.validate (   self)

Definition at line 1065 of file ttypes.py.

1066  def validate(self):
1067  return
def heavydb.thrift.ttypes.TStringRow.write (   self,
  oprot 
)

Definition at line 1050 of file ttypes.py.

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

1051  def write(self, oprot):
1052  if oprot._fast_encode is not None and self.thrift_spec is not None:
1053  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1054  return
1055  oprot.writeStructBegin('TStringRow')
1056  if self.cols is not None:
1057  oprot.writeFieldBegin('cols', TType.LIST, 1)
1058  oprot.writeListBegin(TType.STRUCT, len(self.cols))
1059  for iter55 in self.cols:
1060  iter55.write(oprot)
1061  oprot.writeListEnd()
1062  oprot.writeFieldEnd()
1063  oprot.writeFieldStop()
1064  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TStringRow.__dict__
private

Definition at line 1074 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TStringRow.cols

Definition at line 1023 of file ttypes.py.

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


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