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

Public Member Functions

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

Public Attributes

 table_name
 
 num_cols
 
 is_view
 
 is_replicated
 
 shard_count
 
 max_rows
 
 table_id
 
 max_table_id
 
 col_types
 
 col_names
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - table_name
 - num_cols
 - is_view
 - is_replicated
 - shard_count
 - max_rows
 - table_id
 - max_table_id
 - col_types
 - col_names

Definition at line 3563 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TTableMeta.__init__ (   self,
  table_name = None,
  num_cols = None,
  is_view = None,
  is_replicated = None,
  shard_count = None,
  max_rows = None,
  table_id = None,
  max_table_id = None,
  col_types = None,
  col_names = None 
)

Definition at line 3580 of file ttypes.py.

3581  def __init__(self, table_name=None, num_cols=None, is_view=None, is_replicated=None, shard_count=None, max_rows=None, table_id=None, max_table_id=None, col_types=None, col_names=None,):
3582  self.table_name = table_name
3583  self.num_cols = num_cols
3584  self.is_view = is_view
3585  self.is_replicated = is_replicated
3586  self.shard_count = shard_count
3587  self.max_rows = max_rows
3588  self.table_id = table_id
3589  self.max_table_id = max_table_id
3590  self.col_types = col_types
3591  self.col_names = col_names

Member Function Documentation

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

Definition at line 3729 of file ttypes.py.

3730  def __eq__(self, other):
3731  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TTableMeta.__ne__ (   self,
  other 
)

Definition at line 3732 of file ttypes.py.

3733  def __ne__(self, other):
3734  return not (self == other)
3735 
def heavydb.thrift.ttypes.TTableMeta.__repr__ (   self)

Definition at line 3724 of file ttypes.py.

3725  def __repr__(self):
3726  L = ['%s=%r' % (key, value)
3727  for key, value in self.__dict__.items()]
3728  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.TTableMeta.read (   self,
  iprot 
)

Definition at line 3592 of file ttypes.py.

References heavydb.thrift.ttypes.TTableMeta.col_names, heavydb.thrift.ttypes.TTableMeta.col_types, heavydb.thrift.ttypes.TCreateParams.is_replicated, heavydb.thrift.ttypes.TTableMeta.is_replicated, heavydb.thrift.ttypes.TTableMeta.is_view, TableMetadata.max_rows, ai.heavy.jdbc.Options.max_rows, TableDescriptorUpdateParams.max_rows, heavydb.thrift.ttypes.TTableMeta.max_rows, heavydb.thrift.ttypes.TTableMeta.max_table_id, heavydb.thrift.ttypes.TTableMeta.num_cols, heavydb.thrift.ttypes.TTableMeta.shard_count, 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.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, TableMetadata.table_name, create_table.SyntheticTable.table_name, heavydb.thrift.ttypes.TTableMeta.table_name, heavydb.thrift.Heavy.get_table_details_args.table_name, heavydb.thrift.Heavy.get_table_details_for_database_args.table_name, heavydb.thrift.Heavy.get_internal_table_details_args.table_name, heavydb.thrift.Heavy.get_internal_table_details_for_database_args.table_name, heavydb.thrift.Heavy.set_table_epoch_by_name_args.table_name, heavydb.thrift.Heavy.get_table_epoch_by_name_args.table_name, heavydb.thrift.Heavy.load_table_binary_args.table_name, heavydb.thrift.Heavy.load_table_binary_columnar_args.table_name, heavydb.thrift.Heavy.load_table_binary_columnar_polys_args.table_name, heavydb.thrift.Heavy.load_table_binary_arrow_args.table_name, heavydb.thrift.Heavy.load_table_args.table_name, heavydb.thrift.Heavy.create_table_args.table_name, heavydb.thrift.Heavy.import_table_args.table_name, and heavydb.thrift.Heavy.import_geo_table_args.table_name.

3593  def read(self, iprot):
3594  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3595  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3596  return
3597  iprot.readStructBegin()
3598  while True:
3599  (fname, ftype, fid) = iprot.readFieldBegin()
3600  if ftype == TType.STOP:
3601  break
3602  if fid == 1:
3603  if ftype == TType.STRING:
3604  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3605  else:
3606  iprot.skip(ftype)
3607  elif fid == 2:
3608  if ftype == TType.I64:
3609  self.num_cols = iprot.readI64()
3610  else:
3611  iprot.skip(ftype)
3612  elif fid == 4:
3613  if ftype == TType.BOOL:
3614  self.is_view = iprot.readBool()
3615  else:
3616  iprot.skip(ftype)
3617  elif fid == 5:
3618  if ftype == TType.BOOL:
3619  self.is_replicated = iprot.readBool()
3620  else:
3621  iprot.skip(ftype)
3622  elif fid == 6:
3623  if ftype == TType.I64:
3624  self.shard_count = iprot.readI64()
3625  else:
3626  iprot.skip(ftype)
3627  elif fid == 7:
3628  if ftype == TType.I64:
3629  self.max_rows = iprot.readI64()
3630  else:
3631  iprot.skip(ftype)
3632  elif fid == 8:
3633  if ftype == TType.I64:
3634  self.table_id = iprot.readI64()
3635  else:
3636  iprot.skip(ftype)
3637  elif fid == 9:
3638  if ftype == TType.I64:
3639  self.max_table_id = iprot.readI64()
3640  else:
3641  iprot.skip(ftype)
3642  elif fid == 10:
3643  if ftype == TType.LIST:
3644  self.col_types = []
3645  (_etype129, _size126) = iprot.readListBegin()
3646  for _i130 in range(_size126):
3647  _elem131 = heavydb.common.ttypes.TTypeInfo()
3648  _elem131.read(iprot)
3649  self.col_types.append(_elem131)
3650  iprot.readListEnd()
3651  else:
3652  iprot.skip(ftype)
3653  elif fid == 11:
3654  if ftype == TType.LIST:
3655  self.col_names = []
3656  (_etype135, _size132) = iprot.readListBegin()
3657  for _i136 in range(_size132):
3658  _elem137 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3659  self.col_names.append(_elem137)
3660  iprot.readListEnd()
3661  else:
3662  iprot.skip(ftype)
3663  else:
3664  iprot.skip(ftype)
3665  iprot.readFieldEnd()
3666  iprot.readStructEnd()
def heavydb.thrift.ttypes.TTableMeta.validate (   self)

Definition at line 3721 of file ttypes.py.

3722  def validate(self):
3723  return
def heavydb.thrift.ttypes.TTableMeta.write (   self,
  oprot 
)

Definition at line 3667 of file ttypes.py.

References heavydb.thrift.ttypes.TTableMeta.col_names, heavydb.thrift.ttypes.TTableMeta.col_types, heavydb.thrift.ttypes.TCreateParams.is_replicated, heavydb.thrift.ttypes.TTableMeta.is_replicated, heavydb.thrift.ttypes.TTableMeta.is_view, TableMetadata.max_rows, ai.heavy.jdbc.Options.max_rows, TableDescriptorUpdateParams.max_rows, heavydb.thrift.ttypes.TTableMeta.max_rows, heavydb.thrift.ttypes.TTableMeta.max_table_id, heavydb.thrift.ttypes.TTableMeta.num_cols, heavydb.thrift.ttypes.TTableMeta.shard_count, 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.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, TableMetadata.table_name, create_table.SyntheticTable.table_name, heavydb.thrift.ttypes.TTableMeta.table_name, heavydb.thrift.Heavy.get_table_details_args.table_name, heavydb.thrift.Heavy.get_table_details_for_database_args.table_name, heavydb.thrift.Heavy.get_internal_table_details_args.table_name, heavydb.thrift.Heavy.get_internal_table_details_for_database_args.table_name, heavydb.thrift.Heavy.set_table_epoch_by_name_args.table_name, heavydb.thrift.Heavy.get_table_epoch_by_name_args.table_name, heavydb.thrift.Heavy.load_table_binary_args.table_name, heavydb.thrift.Heavy.load_table_binary_columnar_args.table_name, heavydb.thrift.Heavy.load_table_binary_columnar_polys_args.table_name, heavydb.thrift.Heavy.load_table_binary_arrow_args.table_name, heavydb.thrift.Heavy.load_table_args.table_name, heavydb.thrift.Heavy.create_table_args.table_name, heavydb.thrift.Heavy.import_table_args.table_name, and heavydb.thrift.Heavy.import_geo_table_args.table_name.

3668  def write(self, oprot):
3669  if oprot._fast_encode is not None and self.thrift_spec is not None:
3670  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3671  return
3672  oprot.writeStructBegin('TTableMeta')
3673  if self.table_name is not None:
3674  oprot.writeFieldBegin('table_name', TType.STRING, 1)
3675  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
3676  oprot.writeFieldEnd()
3677  if self.num_cols is not None:
3678  oprot.writeFieldBegin('num_cols', TType.I64, 2)
3679  oprot.writeI64(self.num_cols)
3680  oprot.writeFieldEnd()
3681  if self.is_view is not None:
3682  oprot.writeFieldBegin('is_view', TType.BOOL, 4)
3683  oprot.writeBool(self.is_view)
3684  oprot.writeFieldEnd()
3685  if self.is_replicated is not None:
3686  oprot.writeFieldBegin('is_replicated', TType.BOOL, 5)
3687  oprot.writeBool(self.is_replicated)
3688  oprot.writeFieldEnd()
3689  if self.shard_count is not None:
3690  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3691  oprot.writeI64(self.shard_count)
3692  oprot.writeFieldEnd()
3693  if self.max_rows is not None:
3694  oprot.writeFieldBegin('max_rows', TType.I64, 7)
3695  oprot.writeI64(self.max_rows)
3696  oprot.writeFieldEnd()
3697  if self.table_id is not None:
3698  oprot.writeFieldBegin('table_id', TType.I64, 8)
3699  oprot.writeI64(self.table_id)
3700  oprot.writeFieldEnd()
3701  if self.max_table_id is not None:
3702  oprot.writeFieldBegin('max_table_id', TType.I64, 9)
3703  oprot.writeI64(self.max_table_id)
3704  oprot.writeFieldEnd()
3705  if self.col_types is not None:
3706  oprot.writeFieldBegin('col_types', TType.LIST, 10)
3707  oprot.writeListBegin(TType.STRUCT, len(self.col_types))
3708  for iter138 in self.col_types:
3709  iter138.write(oprot)
3710  oprot.writeListEnd()
3711  oprot.writeFieldEnd()
3712  if self.col_names is not None:
3713  oprot.writeFieldBegin('col_names', TType.LIST, 11)
3714  oprot.writeListBegin(TType.STRING, len(self.col_names))
3715  for iter139 in self.col_names:
3716  oprot.writeString(iter139.encode('utf-8') if sys.version_info[0] == 2 else iter139)
3717  oprot.writeListEnd()
3718  oprot.writeFieldEnd()
3719  oprot.writeFieldStop()
3720  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TTableMeta.__dict__
private

Definition at line 3730 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TTableMeta.col_names

Definition at line 3590 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.col_types

Definition at line 3589 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.is_replicated

Definition at line 3584 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.is_view

Definition at line 3583 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.max_rows

Definition at line 3586 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.max_table_id

Definition at line 3588 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.num_cols

Definition at line 3582 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.shard_count

Definition at line 3585 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.table_id

Definition at line 3587 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableMeta.table_name

Definition at line 3581 of file ttypes.py.

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


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