OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TInsertChunks Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TInsertChunks:
+ Collaboration diagram for heavydb.thrift.ttypes.TInsertChunks:

Public Member Functions

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

Public Attributes

 db_id
 
 table_id
 
 data
 
 valid_indices
 
 num_rows
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - db_id
 - table_id
 - data
 - valid_indices
 - num_rows

Definition at line 4806 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TInsertChunks.__init__ (   self,
  db_id = None,
  table_id = None,
  data = None,
  valid_indices = None,
  num_rows = None 
)

Definition at line 4818 of file ttypes.py.

4819  def __init__(self, db_id=None, table_id=None, data=None, valid_indices=None, num_rows=None,):
4820  self.db_id = db_id
4821  self.table_id = table_id
4822  self.data = data
4823  self.valid_indices = valid_indices
4824  self.num_rows = num_rows

Member Function Documentation

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

Definition at line 4917 of file ttypes.py.

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

Definition at line 4920 of file ttypes.py.

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

Definition at line 4912 of file ttypes.py.

4913  def __repr__(self):
4914  L = ['%s=%r' % (key, value)
4915  for key, value in self.__dict__.items()]
4916  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.TInsertChunks.read (   self,
  iprot 
)

Definition at line 4825 of file ttypes.py.

References 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, heavydb.thrift.ttypes.TInsertChunks.data, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.thrift.ttypes.TInsertData.db_id, heavydb.thrift.ttypes.TInsertChunks.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, ConverterCreateParameter.num_rows, heavydb.thrift.ttypes.TInsertData.num_rows, heavydb.thrift.ttypes.TInsertChunks.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.ttypes.TInsertChunks.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, heavydb.thrift.Heavy.checkpoint_args.table_id, and heavydb.thrift.ttypes.TInsertChunks.valid_indices.

4826  def read(self, iprot):
4827  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4828  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4829  return
4830  iprot.readStructBegin()
4831  while True:
4832  (fname, ftype, fid) = iprot.readFieldBegin()
4833  if ftype == TType.STOP:
4834  break
4835  if fid == 1:
4836  if ftype == TType.I32:
4837  self.db_id = iprot.readI32()
4838  else:
4839  iprot.skip(ftype)
4840  elif fid == 2:
4841  if ftype == TType.I32:
4842  self.table_id = iprot.readI32()
4843  else:
4844  iprot.skip(ftype)
4845  elif fid == 3:
4846  if ftype == TType.LIST:
4847  self.data = []
4848  (_etype199, _size196) = iprot.readListBegin()
4849  for _i200 in range(_size196):
4850  _elem201 = TChunkData()
4851  _elem201.read(iprot)
4852  self.data.append(_elem201)
4853  iprot.readListEnd()
4854  else:
4855  iprot.skip(ftype)
4856  elif fid == 4:
4857  if ftype == TType.LIST:
4858  self.valid_indices = []
4859  (_etype205, _size202) = iprot.readListBegin()
4860  for _i206 in range(_size202):
4861  _elem207 = iprot.readI64()
4862  self.valid_indices.append(_elem207)
4863  iprot.readListEnd()
4864  else:
4865  iprot.skip(ftype)
4866  elif fid == 5:
4867  if ftype == TType.I64:
4868  self.num_rows = iprot.readI64()
4869  else:
4870  iprot.skip(ftype)
4871  else:
4872  iprot.skip(ftype)
4873  iprot.readFieldEnd()
4874  iprot.readStructEnd()
def heavydb.thrift.ttypes.TInsertChunks.validate (   self)

Definition at line 4909 of file ttypes.py.

4910  def validate(self):
4911  return
def heavydb.thrift.ttypes.TInsertChunks.write (   self,
  oprot 
)

Definition at line 4875 of file ttypes.py.

References 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, heavydb.thrift.ttypes.TInsertChunks.data, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.thrift.ttypes.TInsertData.db_id, heavydb.thrift.ttypes.TInsertChunks.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, ConverterCreateParameter.num_rows, heavydb.thrift.ttypes.TInsertData.num_rows, heavydb.thrift.ttypes.TInsertChunks.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.ttypes.TInsertChunks.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, heavydb.thrift.Heavy.checkpoint_args.table_id, and heavydb.thrift.ttypes.TInsertChunks.valid_indices.

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

Member Data Documentation

heavydb.thrift.ttypes.TInsertChunks.__dict__
private

Definition at line 4918 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TInsertChunks.data

Definition at line 4821 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertChunks.db_id

Definition at line 4819 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertChunks.num_rows

Definition at line 4823 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertChunks.table_id

Definition at line 4820 of file ttypes.py.

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

heavydb.thrift.ttypes.TInsertChunks.valid_indices

Definition at line 4822 of file ttypes.py.

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


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