OmniSciDB  94e8789169
 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 1121 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 1132 of file ttypes.py.

1133  def __init__(self, row_desc=None, rows=None, columns=None, is_columnar=None,):
1134  self.row_desc = row_desc
1135  self.rows = rows
1136  self.columns = columns
1137  self.is_columnar = is_columnar

Member Function Documentation

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

Definition at line 1231 of file ttypes.py.

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

Definition at line 1234 of file ttypes.py.

1235  def __ne__(self, other):
1236  return not (self == other)
1237 
def omnisci.thrift.ttypes.TRowSet.__repr__ (   self)

Definition at line 1226 of file ttypes.py.

1227  def __repr__(self):
1228  L = ['%s=%r' % (key, value)
1229  for key, value in self.__dict__.items()]
1230  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 1138 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.

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

Definition at line 1223 of file ttypes.py.

1224  def validate(self):
1225  return
def omnisci.thrift.ttypes.TRowSet.write (   self,
  oprot 
)

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

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

Member Data Documentation

omnisci.thrift.ttypes.TRowSet.__dict__
private

Definition at line 1232 of file ttypes.py.

omnisci.thrift.ttypes.TRowSet.columns

Definition at line 1135 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 1136 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 1133 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 1134 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: