OmniSciDB  72c90bc290
 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 4788 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 4801 of file ttypes.py.

4802  def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None, is_default=None,):
4803  self.db_id = db_id
4804  self.table_id = table_id
4805  self.column_ids = column_ids
4806  self.data = data
4807  self.num_rows = num_rows
4808  self.is_default = is_default

Member Function Documentation

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

Definition at line 4918 of file ttypes.py.

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

Definition at line 4921 of file ttypes.py.

4922  def __ne__(self, other):
4923  return not (self == other)
4924 
def heavydb.thrift.ttypes.TInsertData.__repr__ (   self)

Definition at line 4913 of file ttypes.py.

4914  def __repr__(self):
4915  L = ['%s=%r' % (key, value)
4916  for key, value in self.__dict__.items()]
4917  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 4809 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, data_conversion::ConversionFactoryParam.db_id, ColumnDescriptor.db_id, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.common.ttypes.TStringDictKey.db_id, heavydb.thrift.ttypes.TColumnRange.db_id, heavydb.thrift.ttypes.TDictionaryGeneration.db_id, heavydb.thrift.ttypes.TTableGeneration.db_id, heavydb.thrift.ttypes.TTableCacheStatus.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, 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.TTableCacheStatus.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.

4810  def read(self, iprot):
4811  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4812  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4813  return
4814  iprot.readStructBegin()
4815  while True:
4816  (fname, ftype, fid) = iprot.readFieldBegin()
4817  if ftype == TType.STOP:
4818  break
4819  if fid == 1:
4820  if ftype == TType.I32:
4821  self.db_id = iprot.readI32()
4822  else:
4823  iprot.skip(ftype)
4824  elif fid == 2:
4825  if ftype == TType.I32:
4826  self.table_id = iprot.readI32()
4827  else:
4828  iprot.skip(ftype)
4829  elif fid == 3:
4830  if ftype == TType.LIST:
4831  self.column_ids = []
4832  (_etype185, _size182) = iprot.readListBegin()
4833  for _i186 in range(_size182):
4834  _elem187 = iprot.readI32()
4835  self.column_ids.append(_elem187)
4836  iprot.readListEnd()
4837  else:
4838  iprot.skip(ftype)
4839  elif fid == 4:
4840  if ftype == TType.LIST:
4841  self.data = []
4842  (_etype191, _size188) = iprot.readListBegin()
4843  for _i192 in range(_size188):
4844  _elem193 = TDataBlockPtr()
4845  _elem193.read(iprot)
4846  self.data.append(_elem193)
4847  iprot.readListEnd()
4848  else:
4849  iprot.skip(ftype)
4850  elif fid == 5:
4851  if ftype == TType.I64:
4852  self.num_rows = iprot.readI64()
4853  else:
4854  iprot.skip(ftype)
4855  elif fid == 6:
4856  if ftype == TType.LIST:
4857  self.is_default = []
4858  (_etype197, _size194) = iprot.readListBegin()
4859  for _i198 in range(_size194):
4860  _elem199 = iprot.readBool()
4861  self.is_default.append(_elem199)
4862  iprot.readListEnd()
4863  else:
4864  iprot.skip(ftype)
4865  else:
4866  iprot.skip(ftype)
4867  iprot.readFieldEnd()
4868  iprot.readStructEnd()
def heavydb.thrift.ttypes.TInsertData.validate (   self)

Definition at line 4910 of file ttypes.py.

4911  def validate(self):
4912  return
def heavydb.thrift.ttypes.TInsertData.write (   self,
  oprot 
)

Definition at line 4869 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, data_conversion::ConversionFactoryParam.db_id, ColumnDescriptor.db_id, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.common.ttypes.TStringDictKey.db_id, heavydb.thrift.ttypes.TColumnRange.db_id, heavydb.thrift.ttypes.TDictionaryGeneration.db_id, heavydb.thrift.ttypes.TTableGeneration.db_id, heavydb.thrift.ttypes.TTableCacheStatus.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, 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.TTableCacheStatus.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.

4870  def write(self, oprot):
4871  if oprot._fast_encode is not None and self.thrift_spec is not None:
4872  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4873  return
4874  oprot.writeStructBegin('TInsertData')
4875  if self.db_id is not None:
4876  oprot.writeFieldBegin('db_id', TType.I32, 1)
4877  oprot.writeI32(self.db_id)
4878  oprot.writeFieldEnd()
4879  if self.table_id is not None:
4880  oprot.writeFieldBegin('table_id', TType.I32, 2)
4881  oprot.writeI32(self.table_id)
4882  oprot.writeFieldEnd()
4883  if self.column_ids is not None:
4884  oprot.writeFieldBegin('column_ids', TType.LIST, 3)
4885  oprot.writeListBegin(TType.I32, len(self.column_ids))
4886  for iter200 in self.column_ids:
4887  oprot.writeI32(iter200)
4888  oprot.writeListEnd()
4889  oprot.writeFieldEnd()
4890  if self.data is not None:
4891  oprot.writeFieldBegin('data', TType.LIST, 4)
4892  oprot.writeListBegin(TType.STRUCT, len(self.data))
4893  for iter201 in self.data:
4894  iter201.write(oprot)
4895  oprot.writeListEnd()
4896  oprot.writeFieldEnd()
4897  if self.num_rows is not None:
4898  oprot.writeFieldBegin('num_rows', TType.I64, 5)
4899  oprot.writeI64(self.num_rows)
4900  oprot.writeFieldEnd()
4901  if self.is_default is not None:
4902  oprot.writeFieldBegin('is_default', TType.LIST, 6)
4903  oprot.writeListBegin(TType.BOOL, len(self.is_default))
4904  for iter202 in self.is_default:
4905  oprot.writeBool(iter202)
4906  oprot.writeListEnd()
4907  oprot.writeFieldEnd()
4908  oprot.writeFieldStop()
4909  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TInsertData.__dict__
private

Definition at line 4919 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TInsertData.column_ids

Definition at line 4804 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 4805 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 4802 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 4807 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 4806 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 4803 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: