class documentation
class ObjectStoreIterator(ObjectIterator):
Known subclasses: dulwich.greenthreads.GreenThreadsObjectStoreIterator
ObjectIterator that works on top of an ObjectStore.
Method | __bool__ |
Indicate whether this object has contents. |
Method | __contains__ |
Check if an object is present. |
Method | __getitem__ |
Find an object by SHA1. |
Method | __init__ |
Create a new ObjectIterator. |
Method | __iter__ |
Yield tuple with next object and path. |
Method | __len__ |
Return the number of objects. |
Method | iterobjects |
Iterate over just the objects. |
Method | itershas |
Iterate over the SHAs. |
Instance Variable | sha |
Undocumented |
Instance Variable | store |
Undocumented |
Method | _empty |
Undocumented |
Instance Variable | _shas |
Undocumented |
Check if an object is present.
- Note: This checks if the object is present in
- the underlying object store, not if it would be yielded by the iterator.
Parameters | |
needle | SHA1 of the object to check for |
Find an object by SHA1.
- Note: This retrieves the object from the underlying
- object store. It will also succeed if the object would not be returned by the iterator.
overridden in
dulwich.greenthreads.GreenThreadsObjectStoreIterator
Create a new ObjectIterator.
Parameters | |
store | Object store to retrieve from |
sha | Iterator over (sha, path) tuples |
overridden in
dulwich.greenthreads.GreenThreadsObjectStoreIterator
Yield tuple with next object and path.