OmniSciDB  a5dc49c757
 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 4993 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 5005 of file ttypes.py.

5006  def __init__(self, db_id=None, table_id=None, data=None, valid_indices=None, num_rows=None,):
5007  self.db_id = db_id
5008  self.table_id = table_id
5009  self.data = data
5010  self.valid_indices = valid_indices
5011  self.num_rows = num_rows

Member Function Documentation

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

Definition at line 5104 of file ttypes.py.

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

Definition at line 5107 of file ttypes.py.

5108  def __ne__(self, other):
5109  return not (self == other)
5110 
def heavydb.thrift.ttypes.TInsertChunks.__repr__ (   self)

Definition at line 5099 of file ttypes.py.

5100  def __repr__(self):
5101  L = ['%s=%r' % (key, value)
5102  for key, value in self.__dict__.items()]
5103  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 5012 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, 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.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, 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.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.

5013  def read(self, iprot):
5014  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5015  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5016  return
5017  iprot.readStructBegin()
5018  while True:
5019  (fname, ftype, fid) = iprot.readFieldBegin()
5020  if ftype == TType.STOP:
5021  break
5022  if fid == 1:
5023  if ftype == TType.I32:
5024  self.db_id = iprot.readI32()
5025  else:
5026  iprot.skip(ftype)
5027  elif fid == 2:
5028  if ftype == TType.I32:
5029  self.table_id = iprot.readI32()
5030  else:
5031  iprot.skip(ftype)
5032  elif fid == 3:
5033  if ftype == TType.LIST:
5034  self.data = []
5035  (_etype206, _size203) = iprot.readListBegin()
5036  for _i207 in range(_size203):
5037  _elem208 = TChunkData()
5038  _elem208.read(iprot)
5039  self.data.append(_elem208)
5040  iprot.readListEnd()
5041  else:
5042  iprot.skip(ftype)
5043  elif fid == 4:
5044  if ftype == TType.LIST:
5045  self.valid_indices = []
5046  (_etype212, _size209) = iprot.readListBegin()
5047  for _i213 in range(_size209):
5048  _elem214 = iprot.readI64()
5049  self.valid_indices.append(_elem214)
5050  iprot.readListEnd()
5051  else:
5052  iprot.skip(ftype)
5053  elif fid == 5:
5054  if ftype == TType.I64:
5055  self.num_rows = iprot.readI64()
5056  else:
5057  iprot.skip(ftype)
5058  else:
5059  iprot.skip(ftype)
5060  iprot.readFieldEnd()
5061  iprot.readStructEnd()
def heavydb.thrift.ttypes.TInsertChunks.validate (   self)

Definition at line 5096 of file ttypes.py.

5097  def validate(self):
5098  return
def heavydb.thrift.ttypes.TInsertChunks.write (   self,
  oprot 
)

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

5063  def write(self, oprot):
5064  if oprot._fast_encode is not None and self.thrift_spec is not None:
5065  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5066  return
5067  oprot.writeStructBegin('TInsertChunks')
5068  if self.db_id is not None:
5069  oprot.writeFieldBegin('db_id', TType.I32, 1)
5070  oprot.writeI32(self.db_id)
5071  oprot.writeFieldEnd()
5072  if self.table_id is not None:
5073  oprot.writeFieldBegin('table_id', TType.I32, 2)
5074  oprot.writeI32(self.table_id)
5075  oprot.writeFieldEnd()
5076  if self.data is not None:
5077  oprot.writeFieldBegin('data', TType.LIST, 3)
5078  oprot.writeListBegin(TType.STRUCT, len(self.data))
5079  for iter215 in self.data:
5080  iter215.write(oprot)
5081  oprot.writeListEnd()
5082  oprot.writeFieldEnd()
5083  if self.valid_indices is not None:
5084  oprot.writeFieldBegin('valid_indices', TType.LIST, 4)
5085  oprot.writeListBegin(TType.I64, len(self.valid_indices))
5086  for iter216 in self.valid_indices:
5087  oprot.writeI64(iter216)
5088  oprot.writeListEnd()
5089  oprot.writeFieldEnd()
5090  if self.num_rows is not None:
5091  oprot.writeFieldBegin('num_rows', TType.I64, 5)
5092  oprot.writeI64(self.num_rows)
5093  oprot.writeFieldEnd()
5094  oprot.writeFieldStop()
5095  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TInsertChunks.__dict__
private

Definition at line 5105 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TInsertChunks.data

Definition at line 5008 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 5006 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 5010 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 5007 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 5009 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: