OmniSciDB  a575cb28ea
 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 3409 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 3425 of file ttypes.py.

3426  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,):
3427  self.row_desc = row_desc
3428  self.fragment_size = fragment_size
3429  self.page_size = page_size
3430  self.max_rows = max_rows
3431  self.view_sql = view_sql
3432  self.shard_count = shard_count
3433  self.key_metainfo = key_metainfo
3434  self.is_temporary = is_temporary
3435  self.partition_detail = partition_detail

Member Function Documentation

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

Definition at line 3556 of file ttypes.py.

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

Definition at line 3559 of file ttypes.py.

3560  def __ne__(self, other):
3561  return not (self == other)
3562 
def omnisci.thrift.ttypes.TTableDetails.__repr__ (   self)

Definition at line 3551 of file ttypes.py.

3552  def __repr__(self):
3553  L = ['%s=%r' % (key, value)
3554  for key, value in self.__dict__.items()]
3555  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 3436 of file ttypes.py.

References TableMetadata.fragment_size, create_table.SyntheticTable.fragment_size, omnisci.thrift.ttypes.TTableDetails.fragment_size, omnisci.thrift.ttypes.TTableDetails.is_temporary, omnisci.thrift.ttypes.TTableDetails.key_metainfo, TableMetadata.max_rows, com.omnisci.jdbc.Connection_enums.max_rows, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableDetails.max_rows, File_Namespace::FileMetadata.page_size, 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.

3437  def read(self, iprot):
3438  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3439  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3440  return
3441  iprot.readStructBegin()
3442  while True:
3443  (fname, ftype, fid) = iprot.readFieldBegin()
3444  if ftype == TType.STOP:
3445  break
3446  if fid == 1:
3447  if ftype == TType.LIST:
3448  self.row_desc = []
3449  (_etype143, _size140) = iprot.readListBegin()
3450  for _i144 in range(_size140):
3451  _elem145 = TColumnType()
3452  _elem145.read(iprot)
3453  self.row_desc.append(_elem145)
3454  iprot.readListEnd()
3455  else:
3456  iprot.skip(ftype)
3457  elif fid == 2:
3458  if ftype == TType.I64:
3459  self.fragment_size = iprot.readI64()
3460  else:
3461  iprot.skip(ftype)
3462  elif fid == 3:
3463  if ftype == TType.I64:
3464  self.page_size = iprot.readI64()
3465  else:
3466  iprot.skip(ftype)
3467  elif fid == 4:
3468  if ftype == TType.I64:
3469  self.max_rows = iprot.readI64()
3470  else:
3471  iprot.skip(ftype)
3472  elif fid == 5:
3473  if ftype == TType.STRING:
3474  self.view_sql = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3475  else:
3476  iprot.skip(ftype)
3477  elif fid == 6:
3478  if ftype == TType.I64:
3479  self.shard_count = iprot.readI64()
3480  else:
3481  iprot.skip(ftype)
3482  elif fid == 7:
3483  if ftype == TType.STRING:
3484  self.key_metainfo = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3485  else:
3486  iprot.skip(ftype)
3487  elif fid == 8:
3488  if ftype == TType.BOOL:
3489  self.is_temporary = iprot.readBool()
3490  else:
3491  iprot.skip(ftype)
3492  elif fid == 9:
3493  if ftype == TType.I32:
3494  self.partition_detail = iprot.readI32()
3495  else:
3496  iprot.skip(ftype)
3497  else:
3498  iprot.skip(ftype)
3499  iprot.readFieldEnd()
3500  iprot.readStructEnd()
def omnisci.thrift.ttypes.TTableDetails.validate (   self)

Definition at line 3548 of file ttypes.py.

3549  def validate(self):
3550  return
def omnisci.thrift.ttypes.TTableDetails.write (   self,
  oprot 
)

Definition at line 3501 of file ttypes.py.

References TableMetadata.fragment_size, create_table.SyntheticTable.fragment_size, omnisci.thrift.ttypes.TTableDetails.fragment_size, omnisci.thrift.ttypes.TTableDetails.is_temporary, omnisci.thrift.ttypes.TTableDetails.key_metainfo, TableMetadata.max_rows, com.omnisci.jdbc.Connection_enums.max_rows, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableDetails.max_rows, File_Namespace::FileMetadata.page_size, 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.

3502  def write(self, oprot):
3503  if oprot._fast_encode is not None and self.thrift_spec is not None:
3504  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3505  return
3506  oprot.writeStructBegin('TTableDetails')
3507  if self.row_desc is not None:
3508  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
3509  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
3510  for iter146 in self.row_desc:
3511  iter146.write(oprot)
3512  oprot.writeListEnd()
3513  oprot.writeFieldEnd()
3514  if self.fragment_size is not None:
3515  oprot.writeFieldBegin('fragment_size', TType.I64, 2)
3516  oprot.writeI64(self.fragment_size)
3517  oprot.writeFieldEnd()
3518  if self.page_size is not None:
3519  oprot.writeFieldBegin('page_size', TType.I64, 3)
3520  oprot.writeI64(self.page_size)
3521  oprot.writeFieldEnd()
3522  if self.max_rows is not None:
3523  oprot.writeFieldBegin('max_rows', TType.I64, 4)
3524  oprot.writeI64(self.max_rows)
3525  oprot.writeFieldEnd()
3526  if self.view_sql is not None:
3527  oprot.writeFieldBegin('view_sql', TType.STRING, 5)
3528  oprot.writeString(self.view_sql.encode('utf-8') if sys.version_info[0] == 2 else self.view_sql)
3529  oprot.writeFieldEnd()
3530  if self.shard_count is not None:
3531  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3532  oprot.writeI64(self.shard_count)
3533  oprot.writeFieldEnd()
3534  if self.key_metainfo is not None:
3535  oprot.writeFieldBegin('key_metainfo', TType.STRING, 7)
3536  oprot.writeString(self.key_metainfo.encode('utf-8') if sys.version_info[0] == 2 else self.key_metainfo)
3537  oprot.writeFieldEnd()
3538  if self.is_temporary is not None:
3539  oprot.writeFieldBegin('is_temporary', TType.BOOL, 8)
3540  oprot.writeBool(self.is_temporary)
3541  oprot.writeFieldEnd()
3542  if self.partition_detail is not None:
3543  oprot.writeFieldBegin('partition_detail', TType.I32, 9)
3544  oprot.writeI32(self.partition_detail)
3545  oprot.writeFieldEnd()
3546  oprot.writeFieldStop()
3547  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TTableDetails.__dict__
private

Definition at line 3557 of file ttypes.py.

omnisci.thrift.ttypes.TTableDetails.fragment_size

Definition at line 3427 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 3433 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 3432 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 3429 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 3428 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 3434 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 3426 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 3431 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 3430 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: