b.s.t.TextStore(bzrlib.store.TransportStore) : class documentation

Part of bzrlib.store.text View In Hierarchy

Store that holds files indexed by unique names.

Files can be added, but not modified once they are in. Typically the hash is used as the name, or something else known to be unique, such as a UUID.

Files are stored uncompressed, with no delta compression.

Method _add_compressed Undocumented
Method _add Actually add the file to the given location.
Method _try_put Undocumented
Method _get Return an vanilla file stream for clients to read from.
Method _copy_one Most generic copy-one object routine.
Method _get_compressed Returns a file reading from a particular entry.

Inherited from TransportStore:

Method add Add contents of a file into the store.
Method has_id See Store.has_id.
Method get See Store.get().
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method listable Return True if this store is able to be listed.
Method register_suffix Register a suffix as being expected in this store.
Method total_size Return (count, bytes)
Method _check_fileid Undocumented
Method _id_to_names Return the names in the expected order
Method _get_name A special check, which returns the name of an existing file.
Method _iter_files_recursive Iterate through the files in the transport.
Method _relpath Undocumented

Inherited from Store (via TransportStore):

Method __getitem__ DEPRECATED. Please use .get(fileid) instead.
Method copy_all_ids Copy all the file ids from store_from into self.
Method copy_multi Copy texts for ids from other into self.
def _add_compressed(self, fn, f):
Undocumented
def _add(self, fn, f):
Actually add the file to the given location. This should be overridden by children.
def _try_put(self, fn, f):
Undocumented
def _get(self, fn):
Return an vanilla file stream for clients to read from.

This is the body of a template method on 'get', and should be implemented by subclasses.

def _copy_one(self, fileid, suffix, other, pb):
Most generic copy-one object routine.

Subclasses can override this to provide an optimised copy between their own instances. Such overriden routines should call this if they have no optimised facility for a specific 'other'.

def _get_compressed(self, filename):
Returns a file reading from a particular entry.
API Documentation for Bazaar, generated by pydoctor at 2019-07-18 00:29:27.