OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.common.ttypes.TStringDictKey Class Reference
+ Inheritance diagram for heavydb.common.ttypes.TStringDictKey:
+ Collaboration diagram for heavydb.common.ttypes.TStringDictKey:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 db_id
 
 dict_id
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - db_id
 - dict_id

Definition at line 148 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.common.ttypes.TStringDictKey.__init__ (   self,
  db_id = None,
  dict_id = None 
)

Definition at line 157 of file ttypes.py.

158  def __init__(self, db_id=None, dict_id=None,):
159  self.db_id = db_id
160  self.dict_id = dict_id

Member Function Documentation

def heavydb.common.ttypes.TStringDictKey.__eq__ (   self,
  other 
)

Definition at line 209 of file ttypes.py.

210  def __eq__(self, other):
211  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.common.ttypes.TStringDictKey.__ne__ (   self,
  other 
)

Definition at line 212 of file ttypes.py.

213  def __ne__(self, other):
214  return not (self == other)
215 
def heavydb.common.ttypes.TStringDictKey.__repr__ (   self)

Definition at line 204 of file ttypes.py.

205  def __repr__(self):
206  L = ['%s=%r' % (key, value)
207  for key, value in self.__dict__.items()]
208  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.common.ttypes.TStringDictKey.read (   self,
  iprot 
)

Definition at line 161 of file ttypes.py.

References data_conversion::ConversionFactoryParam.db_id, ColumnDescriptor.db_id, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.common.ttypes.TStringDictKey.db_id, and heavydb.common.ttypes.TStringDictKey.dict_id.

162  def read(self, iprot):
163  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
164  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
165  return
166  iprot.readStructBegin()
167  while True:
168  (fname, ftype, fid) = iprot.readFieldBegin()
169  if ftype == TType.STOP:
170  break
171  if fid == 1:
172  if ftype == TType.I32:
173  self.db_id = iprot.readI32()
174  else:
175  iprot.skip(ftype)
176  elif fid == 2:
177  if ftype == TType.I32:
178  self.dict_id = iprot.readI32()
179  else:
180  iprot.skip(ftype)
181  else:
182  iprot.skip(ftype)
183  iprot.readFieldEnd()
184  iprot.readStructEnd()
def heavydb.common.ttypes.TStringDictKey.validate (   self)

Definition at line 201 of file ttypes.py.

202  def validate(self):
203  return
def heavydb.common.ttypes.TStringDictKey.write (   self,
  oprot 
)

Definition at line 185 of file ttypes.py.

References data_conversion::ConversionFactoryParam.db_id, ColumnDescriptor.db_id, Fragmenter_Namespace::InsertChunks.db_id, foreign_storage::ParseBufferRequest.db_id, heavydb.common.ttypes.TStringDictKey.db_id, and heavydb.common.ttypes.TStringDictKey.dict_id.

186  def write(self, oprot):
187  if oprot._fast_encode is not None and self.thrift_spec is not None:
188  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
189  return
190  oprot.writeStructBegin('TStringDictKey')
191  if self.db_id is not None:
192  oprot.writeFieldBegin('db_id', TType.I32, 1)
193  oprot.writeI32(self.db_id)
194  oprot.writeFieldEnd()
195  if self.dict_id is not None:
196  oprot.writeFieldBegin('dict_id', TType.I32, 2)
197  oprot.writeI32(self.dict_id)
198  oprot.writeFieldEnd()
199  oprot.writeFieldStop()
200  oprot.writeStructEnd()

Member Data Documentation

heavydb.common.ttypes.TStringDictKey.__dict__
private

Definition at line 210 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.common.ttypes.TStringDictKey.db_id

Definition at line 158 of file ttypes.py.

Referenced by heavydb.common.ttypes.TStringDictKey.read(), heavydb.thrift.ttypes.TColumnRange.read(), heavydb.thrift.ttypes.TDictionaryGeneration.read(), heavydb.thrift.ttypes.TTableGeneration.read(), heavydb.thrift.ttypes.TTableCacheStatus.read(), heavydb.thrift.ttypes.TInsertData.read(), heavydb.thrift.ttypes.TInsertChunks.read(), heavydb.thrift.Heavy.set_table_epoch_args.read(), heavydb.thrift.Heavy.get_table_epoch_args.read(), heavydb.thrift.Heavy.get_table_epochs_args.read(), heavydb.thrift.Heavy.set_table_epochs_args.read(), heavydb.common.ttypes.TStringDictKey.write(), heavydb.thrift.ttypes.TColumnRange.write(), heavydb.thrift.ttypes.TDictionaryGeneration.write(), heavydb.thrift.ttypes.TTableGeneration.write(), heavydb.thrift.ttypes.TTableCacheStatus.write(), heavydb.thrift.ttypes.TInsertData.write(), heavydb.thrift.ttypes.TInsertChunks.write(), heavydb.thrift.Heavy.set_table_epoch_args.write(), heavydb.thrift.Heavy.get_table_epoch_args.write(), heavydb.thrift.Heavy.get_table_epochs_args.write(), and heavydb.thrift.Heavy.set_table_epochs_args.write().

heavydb.common.ttypes.TStringDictKey.dict_id

Definition at line 159 of file ttypes.py.

Referenced by heavydb.common.ttypes.TStringDictKey.read(), heavydb.thrift.ttypes.TDictionaryGeneration.read(), heavydb.common.ttypes.TStringDictKey.write(), and heavydb.thrift.ttypes.TDictionaryGeneration.write().


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