OmniSciDB  8fa3bf436f
 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 4128 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 4140 of file ttypes.py.

4141  def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None,):
4142  self.db_id = db_id
4143  self.table_id = table_id
4144  self.column_ids = column_ids
4145  self.data = data
4146  self.num_rows = num_rows

Member Function Documentation

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

Definition at line 4239 of file ttypes.py.

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

Definition at line 4242 of file ttypes.py.

4243  def __ne__(self, other):
4244  return not (self == other)
4245 
def omnisci.thrift.ttypes.TInsertData.__repr__ (   self)

Definition at line 4234 of file ttypes.py.

4235  def __repr__(self):
4236  L = ['%s=%r' % (key, value)
4237  for key, value in self.__dict__.items()]
4238  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 4147 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.get_table_epochs_args.db_id, omnisci.thrift.OmniSci.set_table_epochs_args.db_id, ConverterCreateParameter.num_rows, omnisci.thrift.ttypes.TInsertData.num_rows, TableMetadata.table_id, 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.get_table_epochs_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, and omnisci.thrift.OmniSci.checkpoint_args.table_id.

4148  def read(self, iprot):
4149  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4150  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4151  return
4152  iprot.readStructBegin()
4153  while True:
4154  (fname, ftype, fid) = iprot.readFieldBegin()
4155  if ftype == TType.STOP:
4156  break
4157  if fid == 1:
4158  if ftype == TType.I32:
4159  self.db_id = iprot.readI32()
4160  else:
4161  iprot.skip(ftype)
4162  elif fid == 2:
4163  if ftype == TType.I32:
4164  self.table_id = iprot.readI32()
4165  else:
4166  iprot.skip(ftype)
4167  elif fid == 3:
4168  if ftype == TType.LIST:
4169  self.column_ids = []
4170  (_etype178, _size175) = iprot.readListBegin()
4171  for _i179 in range(_size175):
4172  _elem180 = iprot.readI32()
4173  self.column_ids.append(_elem180)
4174  iprot.readListEnd()
4175  else:
4176  iprot.skip(ftype)
4177  elif fid == 4:
4178  if ftype == TType.LIST:
4179  self.data = []
4180  (_etype184, _size181) = iprot.readListBegin()
4181  for _i185 in range(_size181):
4182  _elem186 = TDataBlockPtr()
4183  _elem186.read(iprot)
4184  self.data.append(_elem186)
4185  iprot.readListEnd()
4186  else:
4187  iprot.skip(ftype)
4188  elif fid == 5:
4189  if ftype == TType.I64:
4190  self.num_rows = iprot.readI64()
4191  else:
4192  iprot.skip(ftype)
4193  else:
4194  iprot.skip(ftype)
4195  iprot.readFieldEnd()
4196  iprot.readStructEnd()
def omnisci.thrift.ttypes.TInsertData.validate (   self)

Definition at line 4231 of file ttypes.py.

4232  def validate(self):
4233  return
def omnisci.thrift.ttypes.TInsertData.write (   self,
  oprot 
)

Definition at line 4197 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.get_table_epochs_args.db_id, omnisci.thrift.OmniSci.set_table_epochs_args.db_id, ConverterCreateParameter.num_rows, omnisci.thrift.ttypes.TInsertData.num_rows, TableMetadata.table_id, 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.get_table_epochs_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, and omnisci.thrift.OmniSci.checkpoint_args.table_id.

4198  def write(self, oprot):
4199  if oprot._fast_encode is not None and self.thrift_spec is not None:
4200  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4201  return
4202  oprot.writeStructBegin('TInsertData')
4203  if self.db_id is not None:
4204  oprot.writeFieldBegin('db_id', TType.I32, 1)
4205  oprot.writeI32(self.db_id)
4206  oprot.writeFieldEnd()
4207  if self.table_id is not None:
4208  oprot.writeFieldBegin('table_id', TType.I32, 2)
4209  oprot.writeI32(self.table_id)
4210  oprot.writeFieldEnd()
4211  if self.column_ids is not None:
4212  oprot.writeFieldBegin('column_ids', TType.LIST, 3)
4213  oprot.writeListBegin(TType.I32, len(self.column_ids))
4214  for iter187 in self.column_ids:
4215  oprot.writeI32(iter187)
4216  oprot.writeListEnd()
4217  oprot.writeFieldEnd()
4218  if self.data is not None:
4219  oprot.writeFieldBegin('data', TType.LIST, 4)
4220  oprot.writeListBegin(TType.STRUCT, len(self.data))
4221  for iter188 in self.data:
4222  iter188.write(oprot)
4223  oprot.writeListEnd()
4224  oprot.writeFieldEnd()
4225  if self.num_rows is not None:
4226  oprot.writeFieldBegin('num_rows', TType.I64, 5)
4227  oprot.writeI64(self.num_rows)
4228  oprot.writeFieldEnd()
4229  oprot.writeFieldStop()
4230  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TInsertData.__dict__
private

Definition at line 4240 of file ttypes.py.

omnisci.thrift.ttypes.TInsertData.column_ids

Definition at line 4143 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 4144 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 4141 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 4145 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 4142 of file ttypes.py.

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


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