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

Constructor & Destructor Documentation

def omnisci.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 3373 of file ttypes.py.

3374  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,):
3375  self.table_name = table_name
3376  self.num_cols = num_cols
3377  self.is_view = is_view
3378  self.is_replicated = is_replicated
3379  self.shard_count = shard_count
3380  self.max_rows = max_rows
3381  self.table_id = table_id
3382  self.max_table_id = max_table_id
3383  self.col_types = col_types
3384  self.col_names = col_names

Member Function Documentation

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

Definition at line 3522 of file ttypes.py.

3523  def __eq__(self, other):
3524  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TTableMeta.__ne__ (   self,
  other 
)

Definition at line 3525 of file ttypes.py.

3526  def __ne__(self, other):
3527  return not (self == other)
3528 
def omnisci.thrift.ttypes.TTableMeta.__repr__ (   self)

Definition at line 3517 of file ttypes.py.

3518  def __repr__(self):
3519  L = ['%s=%r' % (key, value)
3520  for key, value in self.__dict__.items()]
3521  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.TTableMeta.read (   self,
  iprot 
)

Definition at line 3385 of file ttypes.py.

References omnisci.thrift.ttypes.TTableMeta.col_names, omnisci.thrift.ttypes.TTableMeta.col_types, omnisci.thrift.ttypes.TCreateParams.is_replicated, omnisci.thrift.ttypes.TTableMeta.is_replicated, omnisci.thrift.ttypes.TTableMeta.is_view, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableMeta.max_table_id, omnisci.thrift.ttypes.TTableMeta.num_cols, omnisci.thrift.ttypes.TTableMeta.shard_count, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, omnisci.thrift.ttypes.TPixelTableRowResult.table_id, omnisci.thrift.ttypes.TTableMeta.table_id, omnisci.thrift.OmniSci.set_table_epoch_args.table_id, omnisci.thrift.OmniSci.get_table_epoch_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, omnisci.thrift.OmniSci.checkpoint_args.table_id, create_table.SyntheticTable.table_name, Parser::TableRef.table_name, omnisci.thrift.ttypes.TTableMeta.table_name, omnisci.thrift.OmniSci.get_table_details_args.table_name, omnisci.thrift.OmniSci.get_internal_table_details_args.table_name, omnisci.thrift.OmniSci.set_table_epoch_by_name_args.table_name, omnisci.thrift.OmniSci.get_table_epoch_by_name_args.table_name, omnisci.thrift.OmniSci.load_table_binary_args.table_name, omnisci.thrift.OmniSci.load_table_binary_columnar_args.table_name, omnisci.thrift.OmniSci.load_table_binary_arrow_args.table_name, omnisci.thrift.OmniSci.load_table_args.table_name, omnisci.thrift.OmniSci.create_table_args.table_name, omnisci.thrift.OmniSci.import_table_args.table_name, and omnisci.thrift.OmniSci.import_geo_table_args.table_name.

3386  def read(self, iprot):
3387  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3388  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3389  return
3390  iprot.readStructBegin()
3391  while True:
3392  (fname, ftype, fid) = iprot.readFieldBegin()
3393  if ftype == TType.STOP:
3394  break
3395  if fid == 1:
3396  if ftype == TType.STRING:
3397  self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3398  else:
3399  iprot.skip(ftype)
3400  elif fid == 2:
3401  if ftype == TType.I64:
3402  self.num_cols = iprot.readI64()
3403  else:
3404  iprot.skip(ftype)
3405  elif fid == 4:
3406  if ftype == TType.BOOL:
3407  self.is_view = iprot.readBool()
3408  else:
3409  iprot.skip(ftype)
3410  elif fid == 5:
3411  if ftype == TType.BOOL:
3412  self.is_replicated = iprot.readBool()
3413  else:
3414  iprot.skip(ftype)
3415  elif fid == 6:
3416  if ftype == TType.I64:
3417  self.shard_count = iprot.readI64()
3418  else:
3419  iprot.skip(ftype)
3420  elif fid == 7:
3421  if ftype == TType.I64:
3422  self.max_rows = iprot.readI64()
3423  else:
3424  iprot.skip(ftype)
3425  elif fid == 8:
3426  if ftype == TType.I64:
3427  self.table_id = iprot.readI64()
3428  else:
3429  iprot.skip(ftype)
3430  elif fid == 9:
3431  if ftype == TType.I64:
3432  self.max_table_id = iprot.readI64()
3433  else:
3434  iprot.skip(ftype)
3435  elif fid == 10:
3436  if ftype == TType.LIST:
3437  self.col_types = []
3438  (_etype129, _size126) = iprot.readListBegin()
3439  for _i130 in range(_size126):
3440  _elem131 = omnisci.common.ttypes.TTypeInfo()
3441  _elem131.read(iprot)
3442  self.col_types.append(_elem131)
3443  iprot.readListEnd()
3444  else:
3445  iprot.skip(ftype)
3446  elif fid == 11:
3447  if ftype == TType.LIST:
3448  self.col_names = []
3449  (_etype135, _size132) = iprot.readListBegin()
3450  for _i136 in range(_size132):
3451  _elem137 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3452  self.col_names.append(_elem137)
3453  iprot.readListEnd()
3454  else:
3455  iprot.skip(ftype)
3456  else:
3457  iprot.skip(ftype)
3458  iprot.readFieldEnd()
3459  iprot.readStructEnd()
def omnisci.thrift.ttypes.TTableMeta.validate (   self)

Definition at line 3514 of file ttypes.py.

3515  def validate(self):
3516  return
def omnisci.thrift.ttypes.TTableMeta.write (   self,
  oprot 
)

Definition at line 3460 of file ttypes.py.

References omnisci.thrift.ttypes.TTableMeta.col_names, omnisci.thrift.ttypes.TTableMeta.col_types, omnisci.thrift.ttypes.TCreateParams.is_replicated, omnisci.thrift.ttypes.TTableMeta.is_replicated, omnisci.thrift.ttypes.TTableMeta.is_view, omnisci.thrift.ttypes.TTableMeta.max_rows, omnisci.thrift.ttypes.TTableMeta.max_table_id, omnisci.thrift.ttypes.TTableMeta.num_cols, omnisci.thrift.ttypes.TTableMeta.shard_count, Catalog_Namespace::TableEpochInfo.table_id, Analyzer::ColumnVar.table_id, omnisci.thrift.ttypes.TPixelTableRowResult.table_id, omnisci.thrift.ttypes.TTableMeta.table_id, omnisci.thrift.OmniSci.set_table_epoch_args.table_id, omnisci.thrift.OmniSci.get_table_epoch_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, omnisci.thrift.OmniSci.checkpoint_args.table_id, create_table.SyntheticTable.table_name, Parser::TableRef.table_name, omnisci.thrift.ttypes.TTableMeta.table_name, omnisci.thrift.OmniSci.get_table_details_args.table_name, omnisci.thrift.OmniSci.get_internal_table_details_args.table_name, omnisci.thrift.OmniSci.set_table_epoch_by_name_args.table_name, omnisci.thrift.OmniSci.get_table_epoch_by_name_args.table_name, omnisci.thrift.OmniSci.load_table_binary_args.table_name, omnisci.thrift.OmniSci.load_table_binary_columnar_args.table_name, omnisci.thrift.OmniSci.load_table_binary_arrow_args.table_name, omnisci.thrift.OmniSci.load_table_args.table_name, omnisci.thrift.OmniSci.create_table_args.table_name, omnisci.thrift.OmniSci.import_table_args.table_name, and omnisci.thrift.OmniSci.import_geo_table_args.table_name.

3461  def write(self, oprot):
3462  if oprot._fast_encode is not None and self.thrift_spec is not None:
3463  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3464  return
3465  oprot.writeStructBegin('TTableMeta')
3466  if self.table_name is not None:
3467  oprot.writeFieldBegin('table_name', TType.STRING, 1)
3468  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
3469  oprot.writeFieldEnd()
3470  if self.num_cols is not None:
3471  oprot.writeFieldBegin('num_cols', TType.I64, 2)
3472  oprot.writeI64(self.num_cols)
3473  oprot.writeFieldEnd()
3474  if self.is_view is not None:
3475  oprot.writeFieldBegin('is_view', TType.BOOL, 4)
3476  oprot.writeBool(self.is_view)
3477  oprot.writeFieldEnd()
3478  if self.is_replicated is not None:
3479  oprot.writeFieldBegin('is_replicated', TType.BOOL, 5)
3480  oprot.writeBool(self.is_replicated)
3481  oprot.writeFieldEnd()
3482  if self.shard_count is not None:
3483  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3484  oprot.writeI64(self.shard_count)
3485  oprot.writeFieldEnd()
3486  if self.max_rows is not None:
3487  oprot.writeFieldBegin('max_rows', TType.I64, 7)
3488  oprot.writeI64(self.max_rows)
3489  oprot.writeFieldEnd()
3490  if self.table_id is not None:
3491  oprot.writeFieldBegin('table_id', TType.I64, 8)
3492  oprot.writeI64(self.table_id)
3493  oprot.writeFieldEnd()
3494  if self.max_table_id is not None:
3495  oprot.writeFieldBegin('max_table_id', TType.I64, 9)
3496  oprot.writeI64(self.max_table_id)
3497  oprot.writeFieldEnd()
3498  if self.col_types is not None:
3499  oprot.writeFieldBegin('col_types', TType.LIST, 10)
3500  oprot.writeListBegin(TType.STRUCT, len(self.col_types))
3501  for iter138 in self.col_types:
3502  iter138.write(oprot)
3503  oprot.writeListEnd()
3504  oprot.writeFieldEnd()
3505  if self.col_names is not None:
3506  oprot.writeFieldBegin('col_names', TType.LIST, 11)
3507  oprot.writeListBegin(TType.STRING, len(self.col_names))
3508  for iter139 in self.col_names:
3509  oprot.writeString(iter139.encode('utf-8') if sys.version_info[0] == 2 else iter139)
3510  oprot.writeListEnd()
3511  oprot.writeFieldEnd()
3512  oprot.writeFieldStop()
3513  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TTableMeta.__dict__
private

Definition at line 3523 of file ttypes.py.

omnisci.thrift.ttypes.TTableMeta.col_names

Definition at line 3383 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.col_types

Definition at line 3382 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.is_replicated

Definition at line 3377 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.is_view

Definition at line 3376 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.max_rows

Definition at line 3379 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.max_table_id

Definition at line 3381 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.num_cols

Definition at line 3375 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.shard_count

Definition at line 3378 of file ttypes.py.

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

omnisci.thrift.ttypes.TTableMeta.table_id

Definition at line 3380 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TTableMeta.read(), omnisci.thrift.ttypes.TColumnRange.read(), omnisci.thrift.ttypes.TTableGeneration.read(), omnisci.thrift.ttypes.TInsertData.read(), omnisci.thrift.ttypes.TTableMeta.write(), omnisci.thrift.ttypes.TColumnRange.write(), omnisci.thrift.ttypes.TTableGeneration.write(), and omnisci.thrift.ttypes.TInsertData.write().

omnisci.thrift.ttypes.TTableMeta.table_name

Definition at line 3374 of file ttypes.py.

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


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