OmniSciDB  a5dc49c757
 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
 
 sharded_column_name
 

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
 - sharded_column_name

Definition at line 3903 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,
  sharded_column_name = None 
)

Definition at line 3922 of file ttypes.py.

3923  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, sharded_column_name=None,):
3924  self.row_desc = row_desc
3925  self.fragment_size = fragment_size
3926  self.page_size = page_size
3927  self.max_rows = max_rows
3928  self.view_sql = view_sql
3929  self.shard_count = shard_count
3930  self.key_metainfo = key_metainfo
3931  self.is_temporary = is_temporary
3932  self.partition_detail = partition_detail
3933  self.table_type = table_type
3934  self.refresh_info = refresh_info
3935  self.sharded_column_name = sharded_column_name

Member Function Documentation

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

Definition at line 4084 of file ttypes.py.

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

Definition at line 4087 of file ttypes.py.

4088  def __ne__(self, other):
4089  return not (self == other)
4090 
def heavydb.thrift.ttypes.TTableDetails.__repr__ (   self)

Definition at line 4079 of file ttypes.py.

4080  def __repr__(self):
4081  L = ['%s=%r' % (key, value)
4082  for key, value in self.__dict__.items()]
4083  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 3936 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.sharded_column_name, heavydb.thrift.ttypes.TTableDetails.table_type, and heavydb.thrift.ttypes.TTableDetails.view_sql.

3937  def read(self, iprot):
3938  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3939  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3940  return
3941  iprot.readStructBegin()
3942  while True:
3943  (fname, ftype, fid) = iprot.readFieldBegin()
3944  if ftype == TType.STOP:
3945  break
3946  if fid == 1:
3947  if ftype == TType.LIST:
3948  self.row_desc = []
3949  (_etype143, _size140) = iprot.readListBegin()
3950  for _i144 in range(_size140):
3951  _elem145 = TColumnType()
3952  _elem145.read(iprot)
3953  self.row_desc.append(_elem145)
3954  iprot.readListEnd()
3955  else:
3956  iprot.skip(ftype)
3957  elif fid == 2:
3958  if ftype == TType.I64:
3959  self.fragment_size = iprot.readI64()
3960  else:
3961  iprot.skip(ftype)
3962  elif fid == 3:
3963  if ftype == TType.I64:
3964  self.page_size = iprot.readI64()
3965  else:
3966  iprot.skip(ftype)
3967  elif fid == 4:
3968  if ftype == TType.I64:
3969  self.max_rows = iprot.readI64()
3970  else:
3971  iprot.skip(ftype)
3972  elif fid == 5:
3973  if ftype == TType.STRING:
3974  self.view_sql = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3975  else:
3976  iprot.skip(ftype)
3977  elif fid == 6:
3978  if ftype == TType.I64:
3979  self.shard_count = iprot.readI64()
3980  else:
3981  iprot.skip(ftype)
3982  elif fid == 7:
3983  if ftype == TType.STRING:
3984  self.key_metainfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3985  else:
3986  iprot.skip(ftype)
3987  elif fid == 8:
3988  if ftype == TType.BOOL:
3989  self.is_temporary = iprot.readBool()
3990  else:
3991  iprot.skip(ftype)
3992  elif fid == 9:
3993  if ftype == TType.I32:
3994  self.partition_detail = iprot.readI32()
3995  else:
3996  iprot.skip(ftype)
3997  elif fid == 10:
3998  if ftype == TType.I32:
3999  self.table_type = iprot.readI32()
4000  else:
4001  iprot.skip(ftype)
4002  elif fid == 11:
4003  if ftype == TType.STRUCT:
4005  self.refresh_info.read(iprot)
4006  else:
4007  iprot.skip(ftype)
4008  elif fid == 12:
4009  if ftype == TType.STRING:
4010  self.sharded_column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
4011  else:
4012  iprot.skip(ftype)
4013  else:
4014  iprot.skip(ftype)
4015  iprot.readFieldEnd()
4016  iprot.readStructEnd()
def heavydb.thrift.ttypes.TTableDetails.validate (   self)

Definition at line 4076 of file ttypes.py.

4077  def validate(self):
4078  return
def heavydb.thrift.ttypes.TTableDetails.write (   self,
  oprot 
)

Definition at line 4017 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.sharded_column_name, heavydb.thrift.ttypes.TTableDetails.table_type, and heavydb.thrift.ttypes.TTableDetails.view_sql.

4018  def write(self, oprot):
4019  if oprot._fast_encode is not None and self.thrift_spec is not None:
4020  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4021  return
4022  oprot.writeStructBegin('TTableDetails')
4023  if self.row_desc is not None:
4024  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
4025  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
4026  for iter146 in self.row_desc:
4027  iter146.write(oprot)
4028  oprot.writeListEnd()
4029  oprot.writeFieldEnd()
4030  if self.fragment_size is not None:
4031  oprot.writeFieldBegin('fragment_size', TType.I64, 2)
4032  oprot.writeI64(self.fragment_size)
4033  oprot.writeFieldEnd()
4034  if self.page_size is not None:
4035  oprot.writeFieldBegin('page_size', TType.I64, 3)
4036  oprot.writeI64(self.page_size)
4037  oprot.writeFieldEnd()
4038  if self.max_rows is not None:
4039  oprot.writeFieldBegin('max_rows', TType.I64, 4)
4040  oprot.writeI64(self.max_rows)
4041  oprot.writeFieldEnd()
4042  if self.view_sql is not None:
4043  oprot.writeFieldBegin('view_sql', TType.STRING, 5)
4044  oprot.writeString(self.view_sql.encode('utf-8') if sys.version_info[0] == 2 else self.view_sql)
4045  oprot.writeFieldEnd()
4046  if self.shard_count is not None:
4047  oprot.writeFieldBegin('shard_count', TType.I64, 6)
4048  oprot.writeI64(self.shard_count)
4049  oprot.writeFieldEnd()
4050  if self.key_metainfo is not None:
4051  oprot.writeFieldBegin('key_metainfo', TType.STRING, 7)
4052  oprot.writeString(self.key_metainfo.encode('utf-8') if sys.version_info[0] == 2 else self.key_metainfo)
4053  oprot.writeFieldEnd()
4054  if self.is_temporary is not None:
4055  oprot.writeFieldBegin('is_temporary', TType.BOOL, 8)
4056  oprot.writeBool(self.is_temporary)
4057  oprot.writeFieldEnd()
4058  if self.partition_detail is not None:
4059  oprot.writeFieldBegin('partition_detail', TType.I32, 9)
4060  oprot.writeI32(self.partition_detail)
4061  oprot.writeFieldEnd()
4062  if self.table_type is not None:
4063  oprot.writeFieldBegin('table_type', TType.I32, 10)
4064  oprot.writeI32(self.table_type)
4065  oprot.writeFieldEnd()
4066  if self.refresh_info is not None:
4067  oprot.writeFieldBegin('refresh_info', TType.STRUCT, 11)
4068  self.refresh_info.write(oprot)
4069  oprot.writeFieldEnd()
4070  if self.sharded_column_name is not None:
4071  oprot.writeFieldBegin('sharded_column_name', TType.STRING, 12)
4072  oprot.writeString(self.sharded_column_name.encode('utf-8') if sys.version_info[0] == 2 else self.sharded_column_name)
4073  oprot.writeFieldEnd()
4074  oprot.writeFieldStop()
4075  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TTableDetails.__dict__
private

Definition at line 4085 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TTableDetails.fragment_size

Definition at line 3924 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 3930 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 3929 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 3926 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 3925 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 3931 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 3933 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 3923 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 3928 of file ttypes.py.

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

heavydb.thrift.ttypes.TTableDetails.sharded_column_name

Definition at line 3934 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 3932 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 3927 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: