Package twisted :: Package world :: Module compound :: Class StorableDictionaryStore
[frames | no frames]

Class StorableDictionaryStore

object --+            
         |            
  Storable --+        
             |        
    Allocation --+    
                 |    
      StorableList --+
                     |
                    StorableDictionaryStore


Method Summary
  __init__(self, db, keyType, valueType)
  _embiggen(self)
  _updateMeHarder(self, ff, ab, al)
  computePosition(self, inKeyHash, offset)
  crazyGenerator(self, oldFragFile, oldOffset, oldLength)
``There's no reality, there's only illusion...
  delDictItem(self, inKey)
  getDictItem(self, inKey, default)
  getHash(self, inKey)
  iterDictItems(self)
  setDictItem(self, inKey, inValue)
    Inherited from StorableList
  __awake__(self)
POSSIBLY: a method for when objects 'wake up'
  __cmp__(self, other)
  __delitem__(self, inum)
  __delslice__(self, begin, end)
  __eq__(self, other)
  __ge__(self, other)
  __getitem__(self, inum)
  __getslice__(self, begin, end)
  __gt__(self, other)
  __hash__(self)
  __iter__(self)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __ne__(self, other)
  __setitem__(self, inum, value)
  __setslice__(self, begin, end, val)
  _checkindex(self, inum)
  append(self, o)
  expand(self, howMuch)
I have some space in a fragment file, but I need more.
  extend(self, seq)
  index(self, x)
  insert(self, idx, o)
  pop(self, inum)
  remove(self, x)
  sort(self)
  updateFragData(self)
    Inherited from Allocation
  findFragFile(self, howBig)
I may or may not have a fragment file.
  free(self)
  getDataFile(self)
    Inherited from Storable
  __new__(klazz, *args, **kwargs)
(Static method)
  __repr__(self)
  _clearcache(self)
  _loadattr(self, attr)
  _saveattr(self, attr, val)
  _upgradeFrom(self, version, input)
  fromDB(klass, table, oid, genhash)
(Class method)
  getDatabase(self)
Get the database that this object is a member of.
  keepAlive(self, volatileObject)
Keep me alive until nobody references volatileObject any more.
  storedUIDPath(self)
    Inherited from object
  __delattr__(...)
  __getattribute__(...)
  __reduce__(...)
  __setattr__(...)
  __str__(...)

Property Summary
  _schema_genhash: int(_schema_genhash)
  _schema_oid: int(_schema_oid)
  allocBegin: int(allocBegin)
  allocIndex: int(allocIndex)
  allocLength: int(allocLength)
  contentLength: int(contentLength)
  fragfile: FragmentFile(fragfile)
  keyValueCount: int(keyValueCount)
  typeMapper: <class twisted.world.typemap.TypeMapperMapper at 0x8bcfb44>(typeMapper)

Class Variable Summary
str __name__ = 'StorableDictionaryStore'
dict __schema__ = {'_inmem_oid': None, '_inmem_genhash': None...
NoneType _attrcache = None                                                                  
NoneType _inmem_fromdb = None                                                                  
NoneType _inmem_genhash = None                                                                  
NoneType _inmem_oid = None                                                                  
dict _schema_loadmap = {'allocBegin': 2, 'allocIndex': 3, 'ke...
dict _schema_orig = {'_attrcache': None, 'allocIndex': <type ...
tuple _schema_storeorder = ('_schema_genhash', '_schema_oid', ...
NoneType _schema_table = None                                                                  
NoneType fragdata = None                                                                  
    Inherited from StorableList
int initialPad = 10                                                                    

Instance Method Details

crazyGenerator(self, oldFragFile, oldOffset, oldLength)

``There's no reality, there's only illusion
  there's no real sanity, just plain confusion''
        -- Thomas Dolby & Robin Williams, soundtrack to Toys

Property Details

_schema_genhash

int(_schema_genhash)
Get Method:
getter(...)
Set Method:
setter(...)

_schema_oid

int(_schema_oid)
Get Method:
getter(...)
Set Method:
setter(...)

allocBegin

int(allocBegin)
Get Method:
getter(...)
Set Method:
setter(...)

allocIndex

int(allocIndex)
Get Method:
getter(...)
Set Method:
setter(...)

allocLength

int(allocLength)
Get Method:
getter(...)
Set Method:
setter(...)

contentLength

int(contentLength)
Get Method:
getter(...)
Set Method:
setter(...)

fragfile

FragmentFile(fragfile)
Get Method:
getter(...)
Set Method:
setter(...)

keyValueCount

int(keyValueCount)
Get Method:
getter(...)
Set Method:
setter(...)

typeMapper

<class twisted.world.typemap.TypeMapperMapper at 0x8bcfb44>(typeMapper)
Get Method:
getter(...)
Set Method:
setter(...)

Class Variable Details

__name__

Type:
str
Value:
'StorableDictionaryStore'                                              

__schema__

Type:
dict
Value:
{'_attrcache': None,
 '_inmem_fromdb': None,
 '_inmem_genhash': None,
 '_inmem_oid': None,
 '_schema_genhash': <type 'int'>,
 '_schema_oid': <type 'int'>,
 '_schema_table': None,
 'allocBegin': <type 'int'>,
...                                                                    

_attrcache

Type:
NoneType
Value:
None                                                                  

_inmem_fromdb

Type:
NoneType
Value:
None                                                                  

_inmem_genhash

Type:
NoneType
Value:
None                                                                  

_inmem_oid

Type:
NoneType
Value:
None                                                                  

_schema_loadmap

Type:
dict
Value:
{'_schema_genhash': 0,
 '_schema_oid': 1,
 'allocBegin': 2,
 'allocIndex': 3,
 'allocLength': 4,
 'contentLength': 5,
 'fragfile': 6,
 'keyValueCount': 7,
...                                                                    

_schema_orig

Type:
dict
Value:
{'_attrcache': None,
 '_inmem_fromdb': None,
 '_inmem_genhash': None,
 '_inmem_oid': None,
 '_schema_genhash': <type 'int'>,
 '_schema_oid': <type 'int'>,
 '_schema_table': None,
 'allocBegin': <type 'int'>,
...                                                                    

_schema_storeorder

Type:
tuple
Value:
('_schema_genhash',
 '_schema_oid',
 'allocBegin',
 'allocIndex',
 'allocLength',
 'contentLength',
 'fragfile',
 'keyValueCount',
...                                                                    

_schema_table

Type:
NoneType
Value:
None                                                                  

fragdata

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.0 on Sat Sep 13 04:20:34 2003 http://epydoc.sf.net