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

Class InMemoryTable

source code

         object --+        
                  |        
base.meta.MetaMixin --+    
                      |    
         object --+   |    
                  |   |    
  common.ParamMixin --+    
                      |    
              BaseTable --+
                          |
                         InMemoryTable
Known Subclasses:

is a table kept in memory.

This table only keeps an index for the primaray key. All other indices are ignored.

Instance Methods
 
__init__(self, tableDef, **kwargs)
is a constructor for standalone use.
source code
 
__iter__(self) source code
 
__len__(self) source code
 
__nonzero__(self) source code
 
removeRow(self, row) source code
 
addRow(self, row) source code
 
getRow(self, *args) source code
 
getFeeder(self, **kwargs) source code
 
getLimits(self)
returns a limits instance for this table.
source code

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)

__iter__(self)

source code 
Overrides: BaseTable.__iter__

__len__(self)
(Length operator)

source code 
Overrides: BaseTable.__len__

removeRow(self, row)

source code 
Overrides: BaseTable.removeRow

addRow(self, row)

source code 
Overrides: BaseTable.addRow

getRow(self, *args)

source code 
Overrides: BaseTable.getRow

getFeeder(self, **kwargs)

source code 
Overrides: BaseTable.getFeeder

getLimits(self)

source code 

returns a limits instance for this table.

This is a characterisation of the ranges of things in this table, pretty much as what dachs info does; if you fix things here, you probaly want to fix things there, too.