OmniSciDB  a575cb28ea
 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 3236 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 3253 of file ttypes.py.

3254  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,):
3255  self.table_name = table_name
3256  self.num_cols = num_cols
3257  self.is_view = is_view
3258  self.is_replicated = is_replicated
3259  self.shard_count = shard_count
3260  self.max_rows = max_rows
3261  self.table_id = table_id
3262  self.max_table_id = max_table_id
3263  self.col_types = col_types
3264  self.col_names = col_names

Member Function Documentation

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

Definition at line 3402 of file ttypes.py.

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

Definition at line 3405 of file ttypes.py.

3406  def __ne__(self, other):
3407  return not (self == other)
3408 
def omnisci.thrift.ttypes.TTableMeta.__repr__ (   self)

Definition at line 3397 of file ttypes.py.

3398  def __repr__(self):
3399  L = ['%s=%r' % (key, value)
3400  for key, value in self.__dict__.items()]
3401  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 3265 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, TableMetadata.max_rows, com.omnisci.jdbc.Connection_enums.max_rows, 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, TableMetadata.table_id, 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.get_table_epochs_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, omnisci.thrift.OmniSci.checkpoint_args.table_id, TableMetadata.table_name, 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.

3266  def read(self, iprot):
3267  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3268  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3269  return
3270  iprot.readStructBegin()
3271  while True:
3272  (fname, ftype, fid) = iprot.readFieldBegin()
3273  if ftype == TType.STOP:
3274  break
3275  if fid == 1:
3276  if ftype == TType.STRING:
3277  self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3278  else:
3279  iprot.skip(ftype)
3280  elif fid == 2:
3281  if ftype == TType.I64:
3282  self.num_cols = iprot.readI64()
3283  else:
3284  iprot.skip(ftype)
3285  elif fid == 4:
3286  if ftype == TType.BOOL:
3287  self.is_view = iprot.readBool()
3288  else:
3289  iprot.skip(ftype)
3290  elif fid == 5:
3291  if ftype == TType.BOOL:
3292  self.is_replicated = iprot.readBool()
3293  else:
3294  iprot.skip(ftype)
3295  elif fid == 6:
3296  if ftype == TType.I64:
3297  self.shard_count = iprot.readI64()
3298  else:
3299  iprot.skip(ftype)
3300  elif fid == 7:
3301  if ftype == TType.I64:
3302  self.max_rows = iprot.readI64()
3303  else:
3304  iprot.skip(ftype)
3305  elif fid == 8:
3306  if ftype == TType.I64:
3307  self.table_id = iprot.readI64()
3308  else:
3309  iprot.skip(ftype)
3310  elif fid == 9:
3311  if ftype == TType.I64:
3312  self.max_table_id = iprot.readI64()
3313  else:
3314  iprot.skip(ftype)
3315  elif fid == 10:
3316  if ftype == TType.LIST:
3317  self.col_types = []
3318  (_etype129, _size126) = iprot.readListBegin()
3319  for _i130 in range(_size126):
3320  _elem131 = omnisci.common.ttypes.TTypeInfo()
3321  _elem131.read(iprot)
3322  self.col_types.append(_elem131)
3323  iprot.readListEnd()
3324  else:
3325  iprot.skip(ftype)
3326  elif fid == 11:
3327  if ftype == TType.LIST:
3328  self.col_names = []
3329  (_etype135, _size132) = iprot.readListBegin()
3330  for _i136 in range(_size132):
3331  _elem137 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3332  self.col_names.append(_elem137)
3333  iprot.readListEnd()
3334  else:
3335  iprot.skip(ftype)
3336  else:
3337  iprot.skip(ftype)
3338  iprot.readFieldEnd()
3339  iprot.readStructEnd()
def omnisci.thrift.ttypes.TTableMeta.validate (   self)

Definition at line 3394 of file ttypes.py.

3395  def validate(self):
3396  return
def omnisci.thrift.ttypes.TTableMeta.write (   self,
  oprot 
)

Definition at line 3340 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, TableMetadata.max_rows, com.omnisci.jdbc.Connection_enums.max_rows, 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, TableMetadata.table_id, 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.get_table_epochs_args.table_id, omnisci.thrift.OmniSci.check_table_consistency_args.table_id, omnisci.thrift.OmniSci.checkpoint_args.table_id, TableMetadata.table_name, 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.

3341  def write(self, oprot):
3342  if oprot._fast_encode is not None and self.thrift_spec is not None:
3343  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3344  return
3345  oprot.writeStructBegin('TTableMeta')
3346  if self.table_name is not None:
3347  oprot.writeFieldBegin('table_name', TType.STRING, 1)
3348  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
3349  oprot.writeFieldEnd()
3350  if self.num_cols is not None:
3351  oprot.writeFieldBegin('num_cols', TType.I64, 2)
3352  oprot.writeI64(self.num_cols)
3353  oprot.writeFieldEnd()
3354  if self.is_view is not None:
3355  oprot.writeFieldBegin('is_view', TType.BOOL, 4)
3356  oprot.writeBool(self.is_view)
3357  oprot.writeFieldEnd()
3358  if self.is_replicated is not None:
3359  oprot.writeFieldBegin('is_replicated', TType.BOOL, 5)
3360  oprot.writeBool(self.is_replicated)
3361  oprot.writeFieldEnd()
3362  if self.shard_count is not None:
3363  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3364  oprot.writeI64(self.shard_count)
3365  oprot.writeFieldEnd()
3366  if self.max_rows is not None:
3367  oprot.writeFieldBegin('max_rows', TType.I64, 7)
3368  oprot.writeI64(self.max_rows)
3369  oprot.writeFieldEnd()
3370  if self.table_id is not None:
3371  oprot.writeFieldBegin('table_id', TType.I64, 8)
3372  oprot.writeI64(self.table_id)
3373  oprot.writeFieldEnd()
3374  if self.max_table_id is not None:
3375  oprot.writeFieldBegin('max_table_id', TType.I64, 9)
3376  oprot.writeI64(self.max_table_id)
3377  oprot.writeFieldEnd()
3378  if self.col_types is not None:
3379  oprot.writeFieldBegin('col_types', TType.LIST, 10)
3380  oprot.writeListBegin(TType.STRUCT, len(self.col_types))
3381  for iter138 in self.col_types:
3382  iter138.write(oprot)
3383  oprot.writeListEnd()
3384  oprot.writeFieldEnd()
3385  if self.col_names is not None:
3386  oprot.writeFieldBegin('col_names', TType.LIST, 11)
3387  oprot.writeListBegin(TType.STRING, len(self.col_names))
3388  for iter139 in self.col_names:
3389  oprot.writeString(iter139.encode('utf-8') if sys.version_info[0] == 2 else iter139)
3390  oprot.writeListEnd()
3391  oprot.writeFieldEnd()
3392  oprot.writeFieldStop()
3393  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TTableMeta.__dict__
private

Definition at line 3403 of file ttypes.py.

omnisci.thrift.ttypes.TTableMeta.col_names

Definition at line 3263 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 3262 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 3257 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 3256 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 3259 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 3261 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 3255 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 3258 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 3260 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.TTableEpochInfo.read(), omnisci.thrift.ttypes.TTableMeta.write(), omnisci.thrift.ttypes.TColumnRange.write(), omnisci.thrift.ttypes.TTableGeneration.write(), omnisci.thrift.ttypes.TInsertData.write(), and omnisci.thrift.ttypes.TTableEpochInfo.write().

omnisci.thrift.ttypes.TTableMeta.table_name

Definition at line 3254 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: