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

Public Member Functions

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

Public Attributes

 row_desc
 
 fragment_size
 
 page_size
 
 max_rows
 
 view_sql
 
 shard_count
 
 key_metainfo
 
 is_temporary
 
 partition_detail
 
 table_type
 
 refresh_info
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - row_desc
 - fragment_size
 - page_size
 - max_rows
 - view_sql
 - shard_count
 - key_metainfo
 - is_temporary
 - partition_detail
 - table_type
 - refresh_info

Definition at line 3859 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TTableDetails.__init__ (   self,
  row_desc = None,
  fragment_size = None,
  page_size = None,
  max_rows = None,
  view_sql = None,
  shard_count = None,
  key_metainfo = None,
  is_temporary = None,
  partition_detail = None,
  table_type = None,
  refresh_info = None 
)

Definition at line 3877 of file ttypes.py.

3878  def __init__(self, row_desc=None, fragment_size=None, page_size=None, max_rows=None, view_sql=None, shard_count=None, key_metainfo=None, is_temporary=None, partition_detail=None, table_type=None, refresh_info=None,):
3879  self.row_desc = row_desc
3880  self.fragment_size = fragment_size
3881  self.page_size = page_size
3882  self.max_rows = max_rows
3883  self.view_sql = view_sql
3884  self.shard_count = shard_count
3885  self.key_metainfo = key_metainfo
3886  self.is_temporary = is_temporary
3887  self.partition_detail = partition_detail
3888  self.table_type = table_type
3889  self.refresh_info = refresh_info

Member Function Documentation

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

Definition at line 4029 of file ttypes.py.

4030  def __eq__(self, other):
4031  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TTableDetails.__ne__ (   self,
  other 
)

Definition at line 4032 of file ttypes.py.

4033  def __ne__(self, other):
4034  return not (self == other)
4035 
def heavydb.thrift.ttypes.TTableDetails.__repr__ (   self)

Definition at line 4024 of file ttypes.py.

4025  def __repr__(self):
4026  L = ['%s=%r' % (key, value)
4027  for key, value in self.__dict__.items()]
4028  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.TTableDetails.read (   self,
  iprot 
)

Definition at line 3890 of file ttypes.py.

References TableMetadata.fragment_size, create_table.SyntheticTable.fragment_size, heavydb.thrift.ttypes.TTableDetails.fragment_size, Catalog_Namespace::UserMetadata.is_temporary, heavydb.thrift.ttypes.TTableDetails.is_temporary, heavydb.thrift.ttypes.TTableDetails.key_metainfo, TableMetadata.max_rows, ai.heavy.jdbc.Options.max_rows, TableDescriptorUpdateParams.max_rows, heavydb.thrift.ttypes.TTableMeta.max_rows, heavydb.thrift.ttypes.TTableDetails.max_rows, File_Namespace::DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, heavydb.thrift.ttypes.TNodeMemoryInfo.page_size, heavydb.thrift.ttypes.TTableDetails.page_size, heavydb.thrift.ttypes.TTableDetails.partition_detail, heavydb.thrift.ttypes.TTableDetails.refresh_info, heavydb.thrift.ttypes.TStepResult.row_desc, heavydb.thrift.ttypes.TRowSet.row_desc, heavydb.thrift.ttypes.TTableDetails.row_desc, heavydb.thrift.Heavy.create_table_args.row_desc, heavydb.thrift.Heavy.import_geo_table_args.row_desc, heavydb.thrift.Heavy.broadcast_serialized_rows_args.row_desc, heavydb.thrift.ttypes.TTableMeta.shard_count, heavydb.thrift.ttypes.TTableDetails.shard_count, heavydb.thrift.ttypes.TTableDetails.table_type, and heavydb.thrift.ttypes.TTableDetails.view_sql.

3891  def read(self, iprot):
3892  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3893  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3894  return
3895  iprot.readStructBegin()
3896  while True:
3897  (fname, ftype, fid) = iprot.readFieldBegin()
3898  if ftype == TType.STOP:
3899  break
3900  if fid == 1:
3901  if ftype == TType.LIST:
3902  self.row_desc = []
3903  (_etype143, _size140) = iprot.readListBegin()
3904  for _i144 in range(_size140):
3905  _elem145 = TColumnType()
3906  _elem145.read(iprot)
3907  self.row_desc.append(_elem145)
3908  iprot.readListEnd()
3909  else:
3910  iprot.skip(ftype)
3911  elif fid == 2:
3912  if ftype == TType.I64:
3913  self.fragment_size = iprot.readI64()
3914  else:
3915  iprot.skip(ftype)
3916  elif fid == 3:
3917  if ftype == TType.I64:
3918  self.page_size = iprot.readI64()
3919  else:
3920  iprot.skip(ftype)
3921  elif fid == 4:
3922  if ftype == TType.I64:
3923  self.max_rows = iprot.readI64()
3924  else:
3925  iprot.skip(ftype)
3926  elif fid == 5:
3927  if ftype == TType.STRING:
3928  self.view_sql = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3929  else:
3930  iprot.skip(ftype)
3931  elif fid == 6:
3932  if ftype == TType.I64:
3933  self.shard_count = iprot.readI64()
3934  else:
3935  iprot.skip(ftype)
3936  elif fid == 7:
3937  if ftype == TType.STRING:
3938  self.key_metainfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3939  else:
3940  iprot.skip(ftype)
3941  elif fid == 8:
3942  if ftype == TType.BOOL:
3943  self.is_temporary = iprot.readBool()
3944  else:
3945  iprot.skip(ftype)
3946  elif fid == 9:
3947  if ftype == TType.I32:
3948  self.partition_detail = iprot.readI32()
3949  else:
3950  iprot.skip(ftype)
3951  elif fid == 10:
3952  if ftype == TType.I32:
3953  self.table_type = iprot.readI32()
3954  else:
3955  iprot.skip(ftype)
3956  elif fid == 11:
3957  if ftype == TType.STRUCT:
3959  self.refresh_info.read(iprot)
3960  else:
3961  iprot.skip(ftype)
3962  else:
3963  iprot.skip(ftype)
3964  iprot.readFieldEnd()
3965  iprot.readStructEnd()
def heavydb.thrift.ttypes.TTableDetails.validate (   self)

Definition at line 4021 of file ttypes.py.

4022  def validate(self):
4023  return
def heavydb.thrift.ttypes.TTableDetails.write (   self,
  oprot 
)

Definition at line 3966 of file ttypes.py.

References TableMetadata.fragment_size, create_table.SyntheticTable.fragment_size, heavydb.thrift.ttypes.TTableDetails.fragment_size, Catalog_Namespace::UserMetadata.is_temporary, heavydb.thrift.ttypes.TTableDetails.is_temporary, heavydb.thrift.ttypes.TTableDetails.key_metainfo, TableMetadata.max_rows, ai.heavy.jdbc.Options.max_rows, TableDescriptorUpdateParams.max_rows, heavydb.thrift.ttypes.TTableMeta.max_rows, heavydb.thrift.ttypes.TTableDetails.max_rows, File_Namespace::DiskCacheConfig.page_size, File_Namespace::FileMetadata.page_size, heavydb.thrift.ttypes.TNodeMemoryInfo.page_size, heavydb.thrift.ttypes.TTableDetails.page_size, heavydb.thrift.ttypes.TTableDetails.partition_detail, heavydb.thrift.ttypes.TTableDetails.refresh_info, heavydb.thrift.ttypes.TStepResult.row_desc, heavydb.thrift.ttypes.TRowSet.row_desc, heavydb.thrift.ttypes.TTableDetails.row_desc, heavydb.thrift.Heavy.create_table_args.row_desc, heavydb.thrift.Heavy.import_geo_table_args.row_desc, heavydb.thrift.Heavy.broadcast_serialized_rows_args.row_desc, heavydb.thrift.ttypes.TTableMeta.shard_count, heavydb.thrift.ttypes.TTableDetails.shard_count, heavydb.thrift.ttypes.TTableDetails.table_type, and heavydb.thrift.ttypes.TTableDetails.view_sql.

3967  def write(self, oprot):
3968  if oprot._fast_encode is not None and self.thrift_spec is not None:
3969  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3970  return
3971  oprot.writeStructBegin('TTableDetails')
3972  if self.row_desc is not None:
3973  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
3974  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
3975  for iter146 in self.row_desc:
3976  iter146.write(oprot)
3977  oprot.writeListEnd()
3978  oprot.writeFieldEnd()
3979  if self.fragment_size is not None:
3980  oprot.writeFieldBegin('fragment_size', TType.I64, 2)
3981  oprot.writeI64(self.fragment_size)
3982  oprot.writeFieldEnd()
3983  if self.page_size is not None:
3984  oprot.writeFieldBegin('page_size', TType.I64, 3)
3985  oprot.writeI64(self.page_size)
3986  oprot.writeFieldEnd()
3987  if self.max_rows is not None:
3988  oprot.writeFieldBegin('max_rows', TType.I64, 4)
3989  oprot.writeI64(self.max_rows)
3990  oprot.writeFieldEnd()
3991  if self.view_sql is not None:
3992  oprot.writeFieldBegin('view_sql', TType.STRING, 5)
3993  oprot.writeString(self.view_sql.encode('utf-8') if sys.version_info[0] == 2 else self.view_sql)
3994  oprot.writeFieldEnd()
3995  if self.shard_count is not None:
3996  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3997  oprot.writeI64(self.shard_count)
3998  oprot.writeFieldEnd()
3999  if self.key_metainfo is not None:
4000  oprot.writeFieldBegin('key_metainfo', TType.STRING, 7)
4001  oprot.writeString(self.key_metainfo.encode('utf-8') if sys.version_info[0] == 2 else self.key_metainfo)
4002  oprot.writeFieldEnd()
4003  if self.is_temporary is not None:
4004  oprot.writeFieldBegin('is_temporary', TType.BOOL, 8)
4005  oprot.writeBool(self.is_temporary)
4006  oprot.writeFieldEnd()
4007  if self.partition_detail is not None:
4008  oprot.writeFieldBegin('partition_detail', TType.I32, 9)
4009  oprot.writeI32(self.partition_detail)
4010  oprot.writeFieldEnd()
4011  if self.table_type is not None:
4012  oprot.writeFieldBegin('table_type', TType.I32, 10)
4013  oprot.writeI32(self.table_type)
4014  oprot.writeFieldEnd()
4015  if self.refresh_info is not None:
4016  oprot.writeFieldBegin('refresh_info', TType.STRUCT, 11)
4017  self.refresh_info.write(oprot)
4018  oprot.writeFieldEnd()
4019  oprot.writeFieldStop()
4020  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TTableDetails.__dict__
private

Definition at line 4030 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TTableDetails.fragment_size

Definition at line 3879 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.is_temporary

Definition at line 3885 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.key_metainfo

Definition at line 3884 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.max_rows

Definition at line 3881 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.page_size

Definition at line 3880 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.partition_detail

Definition at line 3886 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.refresh_info

Definition at line 3888 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.row_desc

Definition at line 3878 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.shard_count

Definition at line 3883 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.table_type

Definition at line 3887 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.view_sql

Definition at line 3882 of file ttypes.py.

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


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