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