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

Constructor & Destructor Documentation

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

Definition at line 1281 of file ttypes.py.

1282  def __init__(self, row_desc=None, rows=None, columns=None, is_columnar=None,):
1283  self.row_desc = row_desc
1284  self.rows = rows
1285  self.columns = columns
1286  self.is_columnar = is_columnar

Member Function Documentation

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

Definition at line 1380 of file ttypes.py.

1381  def __eq__(self, other):
1382  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TRowSet.__ne__ (   self,
  other 
)

Definition at line 1383 of file ttypes.py.

1384  def __ne__(self, other):
1385  return not (self == other)
1386 
def heavydb.thrift.ttypes.TRowSet.__repr__ (   self)

Definition at line 1375 of file ttypes.py.

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

Definition at line 1287 of file ttypes.py.

References com.mapd.parser.extension.ddl.SqlCreateForeignTable.columns, heavydb.thrift.ttypes.TRowSet.columns, heavydb.thrift.ttypes.TRowSet.is_columnar, heavydb.thrift.ttypes.TStepResult.row_desc, heavydb.thrift.ttypes.TRowSet.row_desc, heavydb.thrift.Heavy.create_table_args.row_desc, heavydb.thrift.Heavy.import_geo_table_args.row_desc, heavydb.thrift.Heavy.broadcast_serialized_rows_args.row_desc, ai.heavy.jdbc.HeavyAIPreparedStatement.rows, import_export::BadRowsTracker.rows, heavydb.thrift.ttypes.TRowSet.rows, heavydb.thrift.Heavy.load_table_binary_args.rows, and heavydb.thrift.Heavy.load_table_args.rows.

1288  def read(self, iprot):
1289  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1290  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1291  return
1292  iprot.readStructBegin()
1293  while True:
1294  (fname, ftype, fid) = iprot.readFieldBegin()
1295  if ftype == TType.STOP:
1296  break
1297  if fid == 1:
1298  if ftype == TType.LIST:
1299  self.row_desc = []
1300  (_etype66, _size63) = iprot.readListBegin()
1301  for _i67 in range(_size63):
1302  _elem68 = TColumnType()
1303  _elem68.read(iprot)
1304  self.row_desc.append(_elem68)
1305  iprot.readListEnd()
1306  else:
1307  iprot.skip(ftype)
1308  elif fid == 2:
1309  if ftype == TType.LIST:
1310  self.rows = []
1311  (_etype72, _size69) = iprot.readListBegin()
1312  for _i73 in range(_size69):
1313  _elem74 = TRow()
1314  _elem74.read(iprot)
1315  self.rows.append(_elem74)
1316  iprot.readListEnd()
1317  else:
1318  iprot.skip(ftype)
1319  elif fid == 3:
1320  if ftype == TType.LIST:
1321  self.columns = []
1322  (_etype78, _size75) = iprot.readListBegin()
1323  for _i79 in range(_size75):
1324  _elem80 = TColumn()
1325  _elem80.read(iprot)
1326  self.columns.append(_elem80)
1327  iprot.readListEnd()
1328  else:
1329  iprot.skip(ftype)
1330  elif fid == 4:
1331  if ftype == TType.BOOL:
1332  self.is_columnar = iprot.readBool()
1333  else:
1334  iprot.skip(ftype)
1335  else:
1336  iprot.skip(ftype)
1337  iprot.readFieldEnd()
1338  iprot.readStructEnd()
def heavydb.thrift.ttypes.TRowSet.validate (   self)

Definition at line 1372 of file ttypes.py.

1373  def validate(self):
1374  return
def heavydb.thrift.ttypes.TRowSet.write (   self,
  oprot 
)

Definition at line 1339 of file ttypes.py.

References com.mapd.parser.extension.ddl.SqlCreateForeignTable.columns, heavydb.thrift.ttypes.TRowSet.columns, heavydb.thrift.ttypes.TRowSet.is_columnar, heavydb.thrift.ttypes.TStepResult.row_desc, heavydb.thrift.ttypes.TRowSet.row_desc, heavydb.thrift.Heavy.create_table_args.row_desc, heavydb.thrift.Heavy.import_geo_table_args.row_desc, heavydb.thrift.Heavy.broadcast_serialized_rows_args.row_desc, ai.heavy.jdbc.HeavyAIPreparedStatement.rows, import_export::BadRowsTracker.rows, heavydb.thrift.ttypes.TRowSet.rows, heavydb.thrift.Heavy.load_table_binary_args.rows, and heavydb.thrift.Heavy.load_table_args.rows.

1340  def write(self, oprot):
1341  if oprot._fast_encode is not None and self.thrift_spec is not None:
1342  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1343  return
1344  oprot.writeStructBegin('TRowSet')
1345  if self.row_desc is not None:
1346  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
1347  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
1348  for iter81 in self.row_desc:
1349  iter81.write(oprot)
1350  oprot.writeListEnd()
1351  oprot.writeFieldEnd()
1352  if self.rows is not None:
1353  oprot.writeFieldBegin('rows', TType.LIST, 2)
1354  oprot.writeListBegin(TType.STRUCT, len(self.rows))
1355  for iter82 in self.rows:
1356  iter82.write(oprot)
1357  oprot.writeListEnd()
1358  oprot.writeFieldEnd()
1359  if self.columns is not None:
1360  oprot.writeFieldBegin('columns', TType.LIST, 3)
1361  oprot.writeListBegin(TType.STRUCT, len(self.columns))
1362  for iter83 in self.columns:
1363  iter83.write(oprot)
1364  oprot.writeListEnd()
1365  oprot.writeFieldEnd()
1366  if self.is_columnar is not None:
1367  oprot.writeFieldBegin('is_columnar', TType.BOOL, 4)
1368  oprot.writeBool(self.is_columnar)
1369  oprot.writeFieldEnd()
1370  oprot.writeFieldStop()
1371  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TRowSet.__dict__
private

Definition at line 1381 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TRowSet.columns

Definition at line 1284 of file ttypes.py.

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

heavydb.thrift.ttypes.TRowSet.is_columnar

Definition at line 1285 of file ttypes.py.

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

heavydb.thrift.ttypes.TRowSet.row_desc

Definition at line 1282 of file ttypes.py.

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

heavydb.thrift.ttypes.TRowSet.rows

Definition at line 1283 of file ttypes.py.

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


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