OmniSciDB  a7179b2938
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TTableDetails Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TTableDetails:
+ Collaboration diagram for omnisci.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
 

Private Attributes

 __dict__
 

Detailed Description

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

Definition at line 3529 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.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 
)

Definition at line 3545 of file ttypes.py.

3546  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,):
3547  self.row_desc = row_desc
3548  self.fragment_size = fragment_size
3549  self.page_size = page_size
3550  self.max_rows = max_rows
3551  self.view_sql = view_sql
3552  self.shard_count = shard_count
3553  self.key_metainfo = key_metainfo
3554  self.is_temporary = is_temporary
3555  self.partition_detail = partition_detail

Member Function Documentation

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

Definition at line 3676 of file ttypes.py.

3677  def __eq__(self, other):
3678  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TTableDetails.__ne__ (   self,
  other 
)

Definition at line 3679 of file ttypes.py.

3680  def __ne__(self, other):
3681  return not (self == other)
3682 
def omnisci.thrift.ttypes.TTableDetails.__repr__ (   self)

Definition at line 3671 of file ttypes.py.

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

Definition at line 3556 of file ttypes.py.

References create_table.SyntheticTable.fragment_size, omnisci.thrift.ttypes.TTableDetails.fragment_size, omnisci.thrift.ttypes.TTableDetails.is_temporary, omnisci.thrift.ttypes.TTableDetails.key_metainfo, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableDetails.max_rows, omnisci.thrift.ttypes.TNodeMemoryInfo.page_size, omnisci.thrift.ttypes.TTableDetails.page_size, omnisci.thrift.ttypes.TTableDetails.partition_detail, omnisci.thrift.ttypes.TStepResult.row_desc, omnisci.thrift.ttypes.TRowSet.row_desc, omnisci.thrift.ttypes.TTableDetails.row_desc, omnisci.thrift.OmniSci.create_table_args.row_desc, omnisci.thrift.OmniSci.import_geo_table_args.row_desc, omnisci.thrift.OmniSci.broadcast_serialized_rows_args.row_desc, omnisci.thrift.ttypes.TTableMeta.shard_count, omnisci.thrift.ttypes.TTableDetails.shard_count, and omnisci.thrift.ttypes.TTableDetails.view_sql.

3557  def read(self, iprot):
3558  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3559  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3560  return
3561  iprot.readStructBegin()
3562  while True:
3563  (fname, ftype, fid) = iprot.readFieldBegin()
3564  if ftype == TType.STOP:
3565  break
3566  if fid == 1:
3567  if ftype == TType.LIST:
3568  self.row_desc = []
3569  (_etype143, _size140) = iprot.readListBegin()
3570  for _i144 in range(_size140):
3571  _elem145 = TColumnType()
3572  _elem145.read(iprot)
3573  self.row_desc.append(_elem145)
3574  iprot.readListEnd()
3575  else:
3576  iprot.skip(ftype)
3577  elif fid == 2:
3578  if ftype == TType.I64:
3579  self.fragment_size = iprot.readI64()
3580  else:
3581  iprot.skip(ftype)
3582  elif fid == 3:
3583  if ftype == TType.I64:
3584  self.page_size = iprot.readI64()
3585  else:
3586  iprot.skip(ftype)
3587  elif fid == 4:
3588  if ftype == TType.I64:
3589  self.max_rows = iprot.readI64()
3590  else:
3591  iprot.skip(ftype)
3592  elif fid == 5:
3593  if ftype == TType.STRING:
3594  self.view_sql = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3595  else:
3596  iprot.skip(ftype)
3597  elif fid == 6:
3598  if ftype == TType.I64:
3599  self.shard_count = iprot.readI64()
3600  else:
3601  iprot.skip(ftype)
3602  elif fid == 7:
3603  if ftype == TType.STRING:
3604  self.key_metainfo = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3605  else:
3606  iprot.skip(ftype)
3607  elif fid == 8:
3608  if ftype == TType.BOOL:
3609  self.is_temporary = iprot.readBool()
3610  else:
3611  iprot.skip(ftype)
3612  elif fid == 9:
3613  if ftype == TType.I32:
3614  self.partition_detail = iprot.readI32()
3615  else:
3616  iprot.skip(ftype)
3617  else:
3618  iprot.skip(ftype)
3619  iprot.readFieldEnd()
3620  iprot.readStructEnd()
def omnisci.thrift.ttypes.TTableDetails.validate (   self)

Definition at line 3668 of file ttypes.py.

3669  def validate(self):
3670  return
def omnisci.thrift.ttypes.TTableDetails.write (   self,
  oprot 
)

Definition at line 3621 of file ttypes.py.

References create_table.SyntheticTable.fragment_size, omnisci.thrift.ttypes.TTableDetails.fragment_size, omnisci.thrift.ttypes.TTableDetails.is_temporary, omnisci.thrift.ttypes.TTableDetails.key_metainfo, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableDetails.max_rows, omnisci.thrift.ttypes.TNodeMemoryInfo.page_size, omnisci.thrift.ttypes.TTableDetails.page_size, omnisci.thrift.ttypes.TTableDetails.partition_detail, omnisci.thrift.ttypes.TStepResult.row_desc, omnisci.thrift.ttypes.TRowSet.row_desc, omnisci.thrift.ttypes.TTableDetails.row_desc, omnisci.thrift.OmniSci.create_table_args.row_desc, omnisci.thrift.OmniSci.import_geo_table_args.row_desc, omnisci.thrift.OmniSci.broadcast_serialized_rows_args.row_desc, omnisci.thrift.ttypes.TTableMeta.shard_count, omnisci.thrift.ttypes.TTableDetails.shard_count, and omnisci.thrift.ttypes.TTableDetails.view_sql.

3622  def write(self, oprot):
3623  if oprot._fast_encode is not None and self.thrift_spec is not None:
3624  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3625  return
3626  oprot.writeStructBegin('TTableDetails')
3627  if self.row_desc is not None:
3628  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
3629  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
3630  for iter146 in self.row_desc:
3631  iter146.write(oprot)
3632  oprot.writeListEnd()
3633  oprot.writeFieldEnd()
3634  if self.fragment_size is not None:
3635  oprot.writeFieldBegin('fragment_size', TType.I64, 2)
3636  oprot.writeI64(self.fragment_size)
3637  oprot.writeFieldEnd()
3638  if self.page_size is not None:
3639  oprot.writeFieldBegin('page_size', TType.I64, 3)
3640  oprot.writeI64(self.page_size)
3641  oprot.writeFieldEnd()
3642  if self.max_rows is not None:
3643  oprot.writeFieldBegin('max_rows', TType.I64, 4)
3644  oprot.writeI64(self.max_rows)
3645  oprot.writeFieldEnd()
3646  if self.view_sql is not None:
3647  oprot.writeFieldBegin('view_sql', TType.STRING, 5)
3648  oprot.writeString(self.view_sql.encode('utf-8') if sys.version_info[0] == 2 else self.view_sql)
3649  oprot.writeFieldEnd()
3650  if self.shard_count is not None:
3651  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3652  oprot.writeI64(self.shard_count)
3653  oprot.writeFieldEnd()
3654  if self.key_metainfo is not None:
3655  oprot.writeFieldBegin('key_metainfo', TType.STRING, 7)
3656  oprot.writeString(self.key_metainfo.encode('utf-8') if sys.version_info[0] == 2 else self.key_metainfo)
3657  oprot.writeFieldEnd()
3658  if self.is_temporary is not None:
3659  oprot.writeFieldBegin('is_temporary', TType.BOOL, 8)
3660  oprot.writeBool(self.is_temporary)
3661  oprot.writeFieldEnd()
3662  if self.partition_detail is not None:
3663  oprot.writeFieldBegin('partition_detail', TType.I32, 9)
3664  oprot.writeI32(self.partition_detail)
3665  oprot.writeFieldEnd()
3666  oprot.writeFieldStop()
3667  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TTableDetails.__dict__
private

Definition at line 3677 of file ttypes.py.

omnisci.thrift.ttypes.TTableDetails.fragment_size

Definition at line 3547 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.is_temporary

Definition at line 3553 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.key_metainfo

Definition at line 3552 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.max_rows

Definition at line 3549 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.page_size

Definition at line 3548 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.partition_detail

Definition at line 3554 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.row_desc

Definition at line 3546 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.shard_count

Definition at line 3551 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableDetails.view_sql

Definition at line 3550 of file ttypes.py.

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


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