Package gavo :: Package rsc :: Module table :: Class UniqueForcedTable
[frames] | no frames]

Class UniqueForcedTable

source code

         object --+                
                  |                
base.meta.MetaMixin --+            
                      |            
         object --+   |            
                  |   |            
  common.ParamMixin --+            
                      |            
              BaseTable --+        
                          |        
              InMemoryTable --+    
                              |    
           InMemoryIndexedTable --+
                                  |
                                 UniqueForcedTable

is an InMemoryTable with an enforced policy on duplicate primary keys.

See resdef.TableDef for a discussion of the policies.

Instance Methods
 
__init__(self, tableDef, **kwargs)
is a constructor for standalone use.
source code
 
addRow(self, row) source code

Inherited from InMemoryIndexedTable: getRow, removeRow

Inherited from InMemoryTable: __iter__, __len__, __nonzero__, getFeeder, getLimits

Inherited from BaseTable: addTuple, close, importFailed, importFinished, runScripts, validateParams

Inherited from base.meta.MetaMixin: addMeta, buildRepr, copyMetaFrom, delMeta, getAllMetaPairs, getMeta, getMetaKeys, getMetaParent, isEmpty, iterMeta, keys, makeOriginal, setMeta, setMetaParent, traverse

Inherited from common.ParamMixin: getParam, getParamByName, getParamByUtype, getParamDict, iterParams, setParam, setParams

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, tableDef, **kwargs)
(Constructor)

source code 

is a constructor for standalone use. You do *not* want to call this when mixing into a Structure.

Overrides: object.__init__
(inherited documentation)

addRow(self, row)

source code 
Overrides: BaseTable.addRow