This is the top-level abstract class which defines the interface for
all DiskIndexes in use. DiskIndexes are dictionary-like objects and can
be accessed and updated by index assignment. However, they are also
transaction based and must be committed to save changes to disk. However,
they do *not* support MVCC semantics. Storage objects must be careful to
acquire a common lock when doing updates.
|
|
__init__(self,
fn,
options)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
|
|
update(self,
d)
Same as dict.update |
|
|
|
|
|
|
|
__contains__(self,
key)
Returns True if key is in the DiskIndex. |
|
|
|
|
has_key(self,
key)
Same as __contains__ |
|
|
|
|
get(self,
key,
failobj=None)
Same as dict.get |
|
|
|
|
__len__(self)
Not implemented. |
|
|
|
|
|
|
|
|
|
|
commit(self)
Commit the DiskIndex. |
|
|
|
|
clean(self,
oldest)
Clean the cache of old-entries. |
|
|
|
|
close(self)
Safely shut down the index. |
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|