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

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 row_desc
 
 rows
 
 columns
 
 is_columnar
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - row_desc
 - rows
 - columns
 - is_columnar

Definition at line 1118 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TRowSet.__init__ (   self,
  row_desc = None,
  rows = None,
  columns = None,
  is_columnar = None 
)

Definition at line 1129 of file ttypes.py.

1130  def __init__(self, row_desc=None, rows=None, columns=None, is_columnar=None,):
1131  self.row_desc = row_desc
1132  self.rows = rows
1133  self.columns = columns
1134  self.is_columnar = is_columnar

Member Function Documentation

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

Definition at line 1228 of file ttypes.py.

1229  def __eq__(self, other):
1230  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TRowSet.__ne__ (   self,
  other 
)

Definition at line 1231 of file ttypes.py.

1232  def __ne__(self, other):
1233  return not (self == other)
1234 
def omnisci.thrift.ttypes.TRowSet.__repr__ (   self)

Definition at line 1223 of file ttypes.py.

1224  def __repr__(self):
1225  L = ['%s=%r' % (key, value)
1226  for key, value in self.__dict__.items()]
1227  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.TRowSet.read (   self,
  iprot 
)

Definition at line 1135 of file ttypes.py.

References com.mapd.parser.extension.ddl.SqlCreateForeignTable.columns, omnisci.thrift.ttypes.TRowSet.columns, Parser::DropColumnStmt.columns, omnisci.thrift.ttypes.TRowSet.is_columnar, omnisci.thrift.ttypes.TStepResult.row_desc, omnisci.thrift.ttypes.TRowSet.row_desc, omnisci.thrift.OmniSci.create_table_args.row_desc, omnisci.thrift.OmniSci.import_geo_table_args.row_desc, omnisci.thrift.OmniSci.broadcast_serialized_rows_args.row_desc, import_export::BadRowsTracker.rows, com.omnisci.jdbc.OmniSciPreparedStatement.rows, omnisci.thrift.ttypes.TRowSet.rows, omnisci.thrift.OmniSci.load_table_binary_args.rows, and omnisci.thrift.OmniSci.load_table_args.rows.

1136  def read(self, iprot):
1137  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1138  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1139  return
1140  iprot.readStructBegin()
1141  while True:
1142  (fname, ftype, fid) = iprot.readFieldBegin()
1143  if ftype == TType.STOP:
1144  break
1145  if fid == 1:
1146  if ftype == TType.LIST:
1147  self.row_desc = []
1148  (_etype66, _size63) = iprot.readListBegin()
1149  for _i67 in range(_size63):
1150  _elem68 = TColumnType()
1151  _elem68.read(iprot)
1152  self.row_desc.append(_elem68)
1153  iprot.readListEnd()
1154  else:
1155  iprot.skip(ftype)
1156  elif fid == 2:
1157  if ftype == TType.LIST:
1158  self.rows = []
1159  (_etype72, _size69) = iprot.readListBegin()
1160  for _i73 in range(_size69):
1161  _elem74 = TRow()
1162  _elem74.read(iprot)
1163  self.rows.append(_elem74)
1164  iprot.readListEnd()
1165  else:
1166  iprot.skip(ftype)
1167  elif fid == 3:
1168  if ftype == TType.LIST:
1169  self.columns = []
1170  (_etype78, _size75) = iprot.readListBegin()
1171  for _i79 in range(_size75):
1172  _elem80 = TColumn()
1173  _elem80.read(iprot)
1174  self.columns.append(_elem80)
1175  iprot.readListEnd()
1176  else:
1177  iprot.skip(ftype)
1178  elif fid == 4:
1179  if ftype == TType.BOOL:
1180  self.is_columnar = iprot.readBool()
1181  else:
1182  iprot.skip(ftype)
1183  else:
1184  iprot.skip(ftype)
1185  iprot.readFieldEnd()
1186  iprot.readStructEnd()
def omnisci.thrift.ttypes.TRowSet.validate (   self)

Definition at line 1220 of file ttypes.py.

1221  def validate(self):
1222  return
def omnisci.thrift.ttypes.TRowSet.write (   self,
  oprot 
)

Definition at line 1187 of file ttypes.py.

References com.mapd.parser.extension.ddl.SqlCreateForeignTable.columns, omnisci.thrift.ttypes.TRowSet.columns, Parser::DropColumnStmt.columns, omnisci.thrift.ttypes.TRowSet.is_columnar, omnisci.thrift.ttypes.TStepResult.row_desc, omnisci.thrift.ttypes.TRowSet.row_desc, omnisci.thrift.OmniSci.create_table_args.row_desc, omnisci.thrift.OmniSci.import_geo_table_args.row_desc, omnisci.thrift.OmniSci.broadcast_serialized_rows_args.row_desc, import_export::BadRowsTracker.rows, com.omnisci.jdbc.OmniSciPreparedStatement.rows, omnisci.thrift.ttypes.TRowSet.rows, omnisci.thrift.OmniSci.load_table_binary_args.rows, and omnisci.thrift.OmniSci.load_table_args.rows.

1188  def write(self, oprot):
1189  if oprot._fast_encode is not None and self.thrift_spec is not None:
1190  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1191  return
1192  oprot.writeStructBegin('TRowSet')
1193  if self.row_desc is not None:
1194  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
1195  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
1196  for iter81 in self.row_desc:
1197  iter81.write(oprot)
1198  oprot.writeListEnd()
1199  oprot.writeFieldEnd()
1200  if self.rows is not None:
1201  oprot.writeFieldBegin('rows', TType.LIST, 2)
1202  oprot.writeListBegin(TType.STRUCT, len(self.rows))
1203  for iter82 in self.rows:
1204  iter82.write(oprot)
1205  oprot.writeListEnd()
1206  oprot.writeFieldEnd()
1207  if self.columns is not None:
1208  oprot.writeFieldBegin('columns', TType.LIST, 3)
1209  oprot.writeListBegin(TType.STRUCT, len(self.columns))
1210  for iter83 in self.columns:
1211  iter83.write(oprot)
1212  oprot.writeListEnd()
1213  oprot.writeFieldEnd()
1214  if self.is_columnar is not None:
1215  oprot.writeFieldBegin('is_columnar', TType.BOOL, 4)
1216  oprot.writeBool(self.is_columnar)
1217  oprot.writeFieldEnd()
1218  oprot.writeFieldStop()
1219  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TRowSet.__dict__
private

Definition at line 1229 of file ttypes.py.

omnisci.thrift.ttypes.TRowSet.columns

Definition at line 1132 of file ttypes.py.

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

omnisci.thrift.ttypes.TRowSet.is_columnar

Definition at line 1133 of file ttypes.py.

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

omnisci.thrift.ttypes.TRowSet.row_desc

Definition at line 1130 of file ttypes.py.

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

omnisci.thrift.ttypes.TRowSet.rows

Definition at line 1131 of file ttypes.py.

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


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