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

Public Member Functions

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

Public Attributes

 db_id
 
 table_id
 
 column_ids
 
 data
 
 num_rows
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - db_id
 - table_id
 - column_ids
 - data
 - num_rows

Definition at line 4248 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TInsertData.__init__ (   self,
  db_id = None,
  table_id = None,
  column_ids = None,
  data = None,
  num_rows = None 
)

Definition at line 4260 of file ttypes.py.

4261  def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None,):
4262  self.db_id = db_id
4263  self.table_id = table_id
4264  self.column_ids = column_ids
4265  self.data = data
4266  self.num_rows = num_rows

Member Function Documentation

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

Definition at line 4359 of file ttypes.py.

4360  def __eq__(self, other):
4361  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TInsertData.__ne__ (   self,
  other 
)

Definition at line 4362 of file ttypes.py.

4363  def __ne__(self, other):
4364  return not (self == other)
4365 
def omnisci.thrift.ttypes.TInsertData.__repr__ (   self)

Definition at line 4354 of file ttypes.py.

4355  def __repr__(self):
4356  L = ['%s=%r' % (key, value)
4357  for key, value in self.__dict__.items()]
4358  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.TInsertData.read (   self,
  iprot 
)

Definition at line 4267 of file ttypes.py.

References omnisci.thrift.ttypes.TInsertData.column_ids, analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, omnisci.thrift.ttypes.TColumn.data, omnisci.thrift.ttypes.TInsertData.data, foreign_storage::csv_file_buffer_parser::ParseBufferRequest.db_id, omnisci.thrift.ttypes.TInsertData.db_id, omnisci.thrift.OmniSci.set_table_epoch_args.db_id, omnisci.thrift.OmniSci.get_table_epoch_args.db_id, omnisci.thrift.OmniSci.checkpoint_args.db_id, ConverterCreateParameter.num_rows, omnisci.thrift.ttypes.TInsertData.num_rows, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, omnisci.thrift.ttypes.TPixelTableRowResult.table_id, omnisci.thrift.ttypes.TTableMeta.table_id, omnisci.thrift.ttypes.TColumnRange.table_id, omnisci.thrift.ttypes.TTableGeneration.table_id, omnisci.thrift.ttypes.TInsertData.table_id, omnisci.thrift.OmniSci.set_table_epoch_args.table_id, omnisci.thrift.OmniSci.get_table_epoch_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, and omnisci.thrift.OmniSci.checkpoint_args.table_id.

4268  def read(self, iprot):
4269  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4270  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4271  return
4272  iprot.readStructBegin()
4273  while True:
4274  (fname, ftype, fid) = iprot.readFieldBegin()
4275  if ftype == TType.STOP:
4276  break
4277  if fid == 1:
4278  if ftype == TType.I32:
4279  self.db_id = iprot.readI32()
4280  else:
4281  iprot.skip(ftype)
4282  elif fid == 2:
4283  if ftype == TType.I32:
4284  self.table_id = iprot.readI32()
4285  else:
4286  iprot.skip(ftype)
4287  elif fid == 3:
4288  if ftype == TType.LIST:
4289  self.column_ids = []
4290  (_etype178, _size175) = iprot.readListBegin()
4291  for _i179 in range(_size175):
4292  _elem180 = iprot.readI32()
4293  self.column_ids.append(_elem180)
4294  iprot.readListEnd()
4295  else:
4296  iprot.skip(ftype)
4297  elif fid == 4:
4298  if ftype == TType.LIST:
4299  self.data = []
4300  (_etype184, _size181) = iprot.readListBegin()
4301  for _i185 in range(_size181):
4302  _elem186 = TDataBlockPtr()
4303  _elem186.read(iprot)
4304  self.data.append(_elem186)
4305  iprot.readListEnd()
4306  else:
4307  iprot.skip(ftype)
4308  elif fid == 5:
4309  if ftype == TType.I64:
4310  self.num_rows = iprot.readI64()
4311  else:
4312  iprot.skip(ftype)
4313  else:
4314  iprot.skip(ftype)
4315  iprot.readFieldEnd()
4316  iprot.readStructEnd()
def omnisci.thrift.ttypes.TInsertData.validate (   self)

Definition at line 4351 of file ttypes.py.

4352  def validate(self):
4353  return
def omnisci.thrift.ttypes.TInsertData.write (   self,
  oprot 
)

Definition at line 4317 of file ttypes.py.

References omnisci.thrift.ttypes.TInsertData.column_ids, analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, omnisci.thrift.ttypes.TColumn.data, omnisci.thrift.ttypes.TInsertData.data, foreign_storage::csv_file_buffer_parser::ParseBufferRequest.db_id, omnisci.thrift.ttypes.TInsertData.db_id, omnisci.thrift.OmniSci.set_table_epoch_args.db_id, omnisci.thrift.OmniSci.get_table_epoch_args.db_id, omnisci.thrift.OmniSci.checkpoint_args.db_id, ConverterCreateParameter.num_rows, omnisci.thrift.ttypes.TInsertData.num_rows, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, omnisci.thrift.ttypes.TPixelTableRowResult.table_id, omnisci.thrift.ttypes.TTableMeta.table_id, omnisci.thrift.ttypes.TColumnRange.table_id, omnisci.thrift.ttypes.TTableGeneration.table_id, omnisci.thrift.ttypes.TInsertData.table_id, omnisci.thrift.OmniSci.set_table_epoch_args.table_id, omnisci.thrift.OmniSci.get_table_epoch_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, and omnisci.thrift.OmniSci.checkpoint_args.table_id.

4318  def write(self, oprot):
4319  if oprot._fast_encode is not None and self.thrift_spec is not None:
4320  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4321  return
4322  oprot.writeStructBegin('TInsertData')
4323  if self.db_id is not None:
4324  oprot.writeFieldBegin('db_id', TType.I32, 1)
4325  oprot.writeI32(self.db_id)
4326  oprot.writeFieldEnd()
4327  if self.table_id is not None:
4328  oprot.writeFieldBegin('table_id', TType.I32, 2)
4329  oprot.writeI32(self.table_id)
4330  oprot.writeFieldEnd()
4331  if self.column_ids is not None:
4332  oprot.writeFieldBegin('column_ids', TType.LIST, 3)
4333  oprot.writeListBegin(TType.I32, len(self.column_ids))
4334  for iter187 in self.column_ids:
4335  oprot.writeI32(iter187)
4336  oprot.writeListEnd()
4337  oprot.writeFieldEnd()
4338  if self.data is not None:
4339  oprot.writeFieldBegin('data', TType.LIST, 4)
4340  oprot.writeListBegin(TType.STRUCT, len(self.data))
4341  for iter188 in self.data:
4342  iter188.write(oprot)
4343  oprot.writeListEnd()
4344  oprot.writeFieldEnd()
4345  if self.num_rows is not None:
4346  oprot.writeFieldBegin('num_rows', TType.I64, 5)
4347  oprot.writeI64(self.num_rows)
4348  oprot.writeFieldEnd()
4349  oprot.writeFieldStop()
4350  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TInsertData.__dict__
private

Definition at line 4360 of file ttypes.py.

omnisci.thrift.ttypes.TInsertData.column_ids

Definition at line 4263 of file ttypes.py.

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

omnisci.thrift.ttypes.TInsertData.data

Definition at line 4264 of file ttypes.py.

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

omnisci.thrift.ttypes.TInsertData.db_id

Definition at line 4261 of file ttypes.py.

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

omnisci.thrift.ttypes.TInsertData.num_rows

Definition at line 4265 of file ttypes.py.

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

omnisci.thrift.ttypes.TInsertData.table_id

Definition at line 4262 of file ttypes.py.

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


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