BTrees :: _OOBTree :: OOBucket :: Class OOBucket
[hide private]
[frames] | no frames]

Class OOBucket



           object --+    
                    |    
persistent.Persistent --+
                        |
                       OOBucket

Instance Methods [hide private]
 
__contains__(x, y)
y in x
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__getstate__()
Return the picklable state of the object
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__iter__(x)
iter(x)
 
__len__(x)
len(x)
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
__repr__(x)
repr(x)
 
__setitem__(x, i, y)
x[i]=y
 
__setstate__()
Set the state of the object
 
_p_deactivate()
Reinitialize from a newly created copy
 
_p_resolveConflict()
Reinitialize from a newly created copy
 
byValue(min)
Return value-keys with values >= min and reverse sorted by values
 
clear()
Remove all of the items from the bucket
 
get(key, default=...)
Look up a value
 
has_key(key)
Test whether the bucket contains the given key
 
items(...)
items([min, max])) -- Return the items
 
iteritems(B, min=..., max=...)
Returns: an iterator over the (key, value) items of B
 
iterkeys(B, min=..., max=...)
Returns: an iterator over the keys of B
 
itervalues(B, min=..., max=...)
Returns: an iterator over the values of B
 
keys(min=..., max=...)
Return the keys
 
maxKey(key=...)
Find the maximum key
 
minKey(key=...)
Find the minimum key
 
update(collection)
Add the items from the given collection
 
values(min=..., max=...)
Return the values

Inherited from persistent.Persistent: __delattr__, __getattribute__, __reduce__, __setattr__

Inherited from persistent.Persistent (private): _p_activate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr

Inherited from object: __hash__, __reduce_ex__, __str__

Properties [hide private]
  _next

Inherited from persistent.Persistent (private): _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Inherited from object: __class__

Method Details [hide private]

__getstate__()

 
Return the picklable state of the object
Overrides: persistent.Persistent.__getstate__

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__

__new__(T, S, ...)

 
Returns:
a new object with type S, a subtype of T

Overrides: persistent.Persistent.__new__

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__

__setstate__()

 
Set the state of the object
Overrides: persistent.Persistent.__setstate__

_p_deactivate()

 
Reinitialize from a newly created copy
Overrides: persistent.Persistent._p_deactivate

get(key, default=...)

 

Look up a value

Return the default (or None) if the key is not found.

iteritems(B, min=..., max=...)

 
Returns:
an iterator over the (key, value) items of B

iterkeys(B, min=..., max=...)

 
Returns:
an iterator over the keys of B

itervalues(B, min=..., max=...)

 
Returns:
an iterator over the values of B

maxKey(key=...)

 

Find the maximum key

If an argument is given, find the maximum <= the argument

minKey(key=...)

 

Find the minimum key

If an argument is given, find the minimum >= the argument