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

Private Attributes

 __dict__
 

Detailed Description

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

Definition at line 4601 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 4614 of file ttypes.py.

4615  def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None, is_default=None,):
4616  self.db_id = db_id
4617  self.table_id = table_id
4618  self.column_ids = column_ids
4619  self.data = data
4620  self.num_rows = num_rows
4621  self.is_default = is_default

Member Function Documentation

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

Definition at line 4731 of file ttypes.py.

4732  def __eq__(self, other):
4733  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TInsertData.__ne__ (   self,
  other 
)

Definition at line 4734 of file ttypes.py.

4735  def __ne__(self, other):
4736  return not (self == other)
4737 
def heavydb.thrift.ttypes.TInsertData.__repr__ (   self)

Definition at line 4726 of file ttypes.py.

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

Definition at line 4622 of file ttypes.py.

References heavydb.thrift.ttypes.TInsertData.column_ids, analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, heavydb.thrift.ttypes.TColumn.data, heavydb.thrift.ttypes.TInsertData.data, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.thrift.ttypes.TInsertData.db_id, heavydb.thrift.Heavy.set_table_epoch_args.db_id, heavydb.thrift.Heavy.get_table_epoch_args.db_id, heavydb.thrift.Heavy.get_table_epochs_args.db_id, heavydb.thrift.Heavy.set_table_epochs_args.db_id, Fragmenter_Namespace::InsertData.is_default, Fragmenter_Namespace::BlockWithColumnId.is_default, heavydb.thrift.ttypes.TInsertData.is_default, ConverterCreateParameter.num_rows, heavydb.thrift.ttypes.TInsertData.num_rows, TableMetadata.table_id, foreign_storage::StorageDetails.table_id, Fragmenter_Namespace::InsertChunks.table_id, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, heavydb.thrift.ttypes.TPixelTableRowResult.table_id, heavydb.thrift.ttypes.TTableMeta.table_id, heavydb.thrift.ttypes.TColumnRange.table_id, heavydb.thrift.ttypes.TTableGeneration.table_id, heavydb.thrift.ttypes.TInsertData.table_id, heavydb.thrift.Heavy.set_table_epoch_args.table_id, heavydb.thrift.Heavy.get_table_epoch_args.table_id, heavydb.thrift.Heavy.get_table_epochs_args.table_id, heavydb.thrift.Heavy.check_table_consistency_args.table_id, and heavydb.thrift.Heavy.checkpoint_args.table_id.

4623  def read(self, iprot):
4624  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4625  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4626  return
4627  iprot.readStructBegin()
4628  while True:
4629  (fname, ftype, fid) = iprot.readFieldBegin()
4630  if ftype == TType.STOP:
4631  break
4632  if fid == 1:
4633  if ftype == TType.I32:
4634  self.db_id = iprot.readI32()
4635  else:
4636  iprot.skip(ftype)
4637  elif fid == 2:
4638  if ftype == TType.I32:
4639  self.table_id = iprot.readI32()
4640  else:
4641  iprot.skip(ftype)
4642  elif fid == 3:
4643  if ftype == TType.LIST:
4644  self.column_ids = []
4645  (_etype178, _size175) = iprot.readListBegin()
4646  for _i179 in range(_size175):
4647  _elem180 = iprot.readI32()
4648  self.column_ids.append(_elem180)
4649  iprot.readListEnd()
4650  else:
4651  iprot.skip(ftype)
4652  elif fid == 4:
4653  if ftype == TType.LIST:
4654  self.data = []
4655  (_etype184, _size181) = iprot.readListBegin()
4656  for _i185 in range(_size181):
4657  _elem186 = TDataBlockPtr()
4658  _elem186.read(iprot)
4659  self.data.append(_elem186)
4660  iprot.readListEnd()
4661  else:
4662  iprot.skip(ftype)
4663  elif fid == 5:
4664  if ftype == TType.I64:
4665  self.num_rows = iprot.readI64()
4666  else:
4667  iprot.skip(ftype)
4668  elif fid == 6:
4669  if ftype == TType.LIST:
4670  self.is_default = []
4671  (_etype190, _size187) = iprot.readListBegin()
4672  for _i191 in range(_size187):
4673  _elem192 = iprot.readBool()
4674  self.is_default.append(_elem192)
4675  iprot.readListEnd()
4676  else:
4677  iprot.skip(ftype)
4678  else:
4679  iprot.skip(ftype)
4680  iprot.readFieldEnd()
4681  iprot.readStructEnd()
def heavydb.thrift.ttypes.TInsertData.validate (   self)

Definition at line 4723 of file ttypes.py.

4724  def validate(self):
4725  return
def heavydb.thrift.ttypes.TInsertData.write (   self,
  oprot 
)

Definition at line 4682 of file ttypes.py.

References heavydb.thrift.ttypes.TInsertData.column_ids, analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, heavydb.thrift.ttypes.TColumn.data, heavydb.thrift.ttypes.TInsertData.data, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.thrift.ttypes.TInsertData.db_id, heavydb.thrift.Heavy.set_table_epoch_args.db_id, heavydb.thrift.Heavy.get_table_epoch_args.db_id, heavydb.thrift.Heavy.get_table_epochs_args.db_id, heavydb.thrift.Heavy.set_table_epochs_args.db_id, Fragmenter_Namespace::InsertData.is_default, Fragmenter_Namespace::BlockWithColumnId.is_default, heavydb.thrift.ttypes.TInsertData.is_default, ConverterCreateParameter.num_rows, heavydb.thrift.ttypes.TInsertData.num_rows, TableMetadata.table_id, foreign_storage::StorageDetails.table_id, Fragmenter_Namespace::InsertChunks.table_id, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, heavydb.thrift.ttypes.TPixelTableRowResult.table_id, heavydb.thrift.ttypes.TTableMeta.table_id, heavydb.thrift.ttypes.TColumnRange.table_id, heavydb.thrift.ttypes.TTableGeneration.table_id, heavydb.thrift.ttypes.TInsertData.table_id, heavydb.thrift.Heavy.set_table_epoch_args.table_id, heavydb.thrift.Heavy.get_table_epoch_args.table_id, heavydb.thrift.Heavy.get_table_epochs_args.table_id, heavydb.thrift.Heavy.check_table_consistency_args.table_id, and heavydb.thrift.Heavy.checkpoint_args.table_id.

4683  def write(self, oprot):
4684  if oprot._fast_encode is not None and self.thrift_spec is not None:
4685  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4686  return
4687  oprot.writeStructBegin('TInsertData')
4688  if self.db_id is not None:
4689  oprot.writeFieldBegin('db_id', TType.I32, 1)
4690  oprot.writeI32(self.db_id)
4691  oprot.writeFieldEnd()
4692  if self.table_id is not None:
4693  oprot.writeFieldBegin('table_id', TType.I32, 2)
4694  oprot.writeI32(self.table_id)
4695  oprot.writeFieldEnd()
4696  if self.column_ids is not None:
4697  oprot.writeFieldBegin('column_ids', TType.LIST, 3)
4698  oprot.writeListBegin(TType.I32, len(self.column_ids))
4699  for iter193 in self.column_ids:
4700  oprot.writeI32(iter193)
4701  oprot.writeListEnd()
4702  oprot.writeFieldEnd()
4703  if self.data is not None:
4704  oprot.writeFieldBegin('data', TType.LIST, 4)
4705  oprot.writeListBegin(TType.STRUCT, len(self.data))
4706  for iter194 in self.data:
4707  iter194.write(oprot)
4708  oprot.writeListEnd()
4709  oprot.writeFieldEnd()
4710  if self.num_rows is not None:
4711  oprot.writeFieldBegin('num_rows', TType.I64, 5)
4712  oprot.writeI64(self.num_rows)
4713  oprot.writeFieldEnd()
4714  if self.is_default is not None:
4715  oprot.writeFieldBegin('is_default', TType.LIST, 6)
4716  oprot.writeListBegin(TType.BOOL, len(self.is_default))
4717  for iter195 in self.is_default:
4718  oprot.writeBool(iter195)
4719  oprot.writeListEnd()
4720  oprot.writeFieldEnd()
4721  oprot.writeFieldStop()
4722  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TInsertData.__dict__
private

Definition at line 4732 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TInsertData.column_ids

Definition at line 4617 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertData.data

Definition at line 4618 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertData.db_id

Definition at line 4615 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertData.is_default

Definition at line 4620 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertData.num_rows

Definition at line 4619 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertData.table_id

Definition at line 4616 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TInsertData.read(), heavydb.thrift.ttypes.TInsertChunks.read(), heavydb.thrift.ttypes.TTableEpochInfo.read(), heavydb.thrift.ttypes.TInsertData.write(), heavydb.thrift.ttypes.TInsertChunks.write(), and heavydb.thrift.ttypes.TTableEpochInfo.write().


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