OmniSciDB  a5dc49c757
 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 3607 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 3624 of file ttypes.py.

3625  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,):
3626  self.table_name = table_name
3627  self.num_cols = num_cols
3628  self.is_view = is_view
3629  self.is_replicated = is_replicated
3630  self.shard_count = shard_count
3631  self.max_rows = max_rows
3632  self.table_id = table_id
3633  self.max_table_id = max_table_id
3634  self.col_types = col_types
3635  self.col_names = col_names

Member Function Documentation

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

Definition at line 3773 of file ttypes.py.

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

Definition at line 3776 of file ttypes.py.

3777  def __ne__(self, other):
3778  return not (self == other)
3779 
def heavydb.thrift.ttypes.TTableMeta.__repr__ (   self)

Definition at line 3768 of file ttypes.py.

3769  def __repr__(self):
3770  L = ['%s=%r' % (key, value)
3771  for key, value in self.__dict__.items()]
3772  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 3636 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, 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, AlterTableAlterColumnCommandRecoveryMgr::RecoveryParamFilepathInfo.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_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.

3637  def read(self, iprot):
3638  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3639  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3640  return
3641  iprot.readStructBegin()
3642  while True:
3643  (fname, ftype, fid) = iprot.readFieldBegin()
3644  if ftype == TType.STOP:
3645  break
3646  if fid == 1:
3647  if ftype == TType.STRING:
3648  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3649  else:
3650  iprot.skip(ftype)
3651  elif fid == 2:
3652  if ftype == TType.I64:
3653  self.num_cols = iprot.readI64()
3654  else:
3655  iprot.skip(ftype)
3656  elif fid == 4:
3657  if ftype == TType.BOOL:
3658  self.is_view = iprot.readBool()
3659  else:
3660  iprot.skip(ftype)
3661  elif fid == 5:
3662  if ftype == TType.BOOL:
3663  self.is_replicated = iprot.readBool()
3664  else:
3665  iprot.skip(ftype)
3666  elif fid == 6:
3667  if ftype == TType.I64:
3668  self.shard_count = iprot.readI64()
3669  else:
3670  iprot.skip(ftype)
3671  elif fid == 7:
3672  if ftype == TType.I64:
3673  self.max_rows = iprot.readI64()
3674  else:
3675  iprot.skip(ftype)
3676  elif fid == 8:
3677  if ftype == TType.I64:
3678  self.table_id = iprot.readI64()
3679  else:
3680  iprot.skip(ftype)
3681  elif fid == 9:
3682  if ftype == TType.I64:
3683  self.max_table_id = iprot.readI64()
3684  else:
3685  iprot.skip(ftype)
3686  elif fid == 10:
3687  if ftype == TType.LIST:
3688  self.col_types = []
3689  (_etype129, _size126) = iprot.readListBegin()
3690  for _i130 in range(_size126):
3691  _elem131 = heavydb.common.ttypes.TTypeInfo()
3692  _elem131.read(iprot)
3693  self.col_types.append(_elem131)
3694  iprot.readListEnd()
3695  else:
3696  iprot.skip(ftype)
3697  elif fid == 11:
3698  if ftype == TType.LIST:
3699  self.col_names = []
3700  (_etype135, _size132) = iprot.readListBegin()
3701  for _i136 in range(_size132):
3702  _elem137 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3703  self.col_names.append(_elem137)
3704  iprot.readListEnd()
3705  else:
3706  iprot.skip(ftype)
3707  else:
3708  iprot.skip(ftype)
3709  iprot.readFieldEnd()
3710  iprot.readStructEnd()
def heavydb.thrift.ttypes.TTableMeta.validate (   self)

Definition at line 3765 of file ttypes.py.

3766  def validate(self):
3767  return
def heavydb.thrift.ttypes.TTableMeta.write (   self,
  oprot 
)

Definition at line 3711 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, 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, AlterTableAlterColumnCommandRecoveryMgr::RecoveryParamFilepathInfo.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_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.

3712  def write(self, oprot):
3713  if oprot._fast_encode is not None and self.thrift_spec is not None:
3714  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3715  return
3716  oprot.writeStructBegin('TTableMeta')
3717  if self.table_name is not None:
3718  oprot.writeFieldBegin('table_name', TType.STRING, 1)
3719  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
3720  oprot.writeFieldEnd()
3721  if self.num_cols is not None:
3722  oprot.writeFieldBegin('num_cols', TType.I64, 2)
3723  oprot.writeI64(self.num_cols)
3724  oprot.writeFieldEnd()
3725  if self.is_view is not None:
3726  oprot.writeFieldBegin('is_view', TType.BOOL, 4)
3727  oprot.writeBool(self.is_view)
3728  oprot.writeFieldEnd()
3729  if self.is_replicated is not None:
3730  oprot.writeFieldBegin('is_replicated', TType.BOOL, 5)
3731  oprot.writeBool(self.is_replicated)
3732  oprot.writeFieldEnd()
3733  if self.shard_count is not None:
3734  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3735  oprot.writeI64(self.shard_count)
3736  oprot.writeFieldEnd()
3737  if self.max_rows is not None:
3738  oprot.writeFieldBegin('max_rows', TType.I64, 7)
3739  oprot.writeI64(self.max_rows)
3740  oprot.writeFieldEnd()
3741  if self.table_id is not None:
3742  oprot.writeFieldBegin('table_id', TType.I64, 8)
3743  oprot.writeI64(self.table_id)
3744  oprot.writeFieldEnd()
3745  if self.max_table_id is not None:
3746  oprot.writeFieldBegin('max_table_id', TType.I64, 9)
3747  oprot.writeI64(self.max_table_id)
3748  oprot.writeFieldEnd()
3749  if self.col_types is not None:
3750  oprot.writeFieldBegin('col_types', TType.LIST, 10)
3751  oprot.writeListBegin(TType.STRUCT, len(self.col_types))
3752  for iter138 in self.col_types:
3753  iter138.write(oprot)
3754  oprot.writeListEnd()
3755  oprot.writeFieldEnd()
3756  if self.col_names is not None:
3757  oprot.writeFieldBegin('col_names', TType.LIST, 11)
3758  oprot.writeListBegin(TType.STRING, len(self.col_names))
3759  for iter139 in self.col_names:
3760  oprot.writeString(iter139.encode('utf-8') if sys.version_info[0] == 2 else iter139)
3761  oprot.writeListEnd()
3762  oprot.writeFieldEnd()
3763  oprot.writeFieldStop()
3764  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TTableMeta.__dict__
private

Definition at line 3774 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TTableMeta.col_names

Definition at line 3634 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 3633 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 3628 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 3627 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 3630 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 3632 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 3626 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 3629 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 3631 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TTableMeta.read(), heavydb.thrift.ttypes.TColumnRange.read(), heavydb.thrift.ttypes.TTableGeneration.read(), heavydb.thrift.ttypes.TTableCacheStatus.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.TTableCacheStatus.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 3625 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: